Crispy on 18/1/2006 at 12:41
Yes, although you'd need more than one script for that to work, so that you could check the distance condition both before and after the delay.
Hopefully I'll get to try this out soon. :)
Krypt on 18/1/2006 at 18:48
That's an easy change to make, you can just add that delay in at the start and then shave a second off the second delay. This setup should still allow you to sneak up on it though, as long as it doesn't see you.
Crispy on 19/1/2006 at 01:24
Sure, except that then the spider could theoretically attack you from outside its melee range, provided that you were inside its melee range 1 second ago. Though you probably wouldn't notice when it did.
Crispy on 19/1/2006 at 03:19
Okay, I just tried this and couldn't get it to work. Neither script appeared to be triggering; I made both of them play sounds when triggered, and those sounds didn't get played no matter what I did.
I did, however, notice that the rust bug does appear to be making some attempt to attack me. I set AIPawn->DiagnosticsOn to True and ran the level in debug mode, which produced some relevant lines in t3main.log saying that it was going into yellow and red alerts. (Actually I think they're just errors saying it can't find certain schemas, but that does indicate that it's entering those states.) And it was definitely following me around at times; I got it to climb a staircase running after me, which is something rust bugs don't normally do. It found the stairs a struggle, but it made it. :)
It's still not actually attacking me, though, and the amount of provocation it needs to go into a yellow or red alert is rather excessive.
Also it turns out I can actually kill it; there's just no death animation and no blood, so it reverts to its idle animation and stops walking around. The log shows that it did actually enter the "dead" state.
Code:
WARNING: Doing tag lookup (+yellowalert:new_evidence +voice:rustmite) (+enemy:player +targetsex:male) over set of 13745 tags![ 121335] (.\TagDB\TagDatabase.cpp : 861)
WARNING: Doing tag lookup (+redalert:continue +voice:rustmite) ((null)) over set of 13745 tags! [ 131346] (.\TagDB\TagDatabase.cpp : 861)
WARNING: Doing tag lookup (+yellowalert:continue +voice:rustmite) (+enemy:player +targetsex:male) over set of 13745 tags![ 139858] (.\TagDB\TagDatabase.cpp : 861)
WARNING: Doing tag lookup (+combattookhit:med_damage +voice:rustmite) (+enemy:player +targetsex:male) over set of 13745 tags![ 140303] (.\TagDB\TagDatabase.cpp : 861)
WARNING: Doing tag lookup (+death:grunt +voice:rustmite) ((null)) over set of 13745 tags!