Hey everyone! Can someone give me a hand with this script? The character is supposed to head to the switch, when it is reached, he activates it, then rotates to the player. The problem is he keeps walking into the switch, anybody have any ideas?
Here's the code:
;Artificial Intelligence Script
desc= character activates entity titled 'switch' when reached
:state=0:settargetname=switch,state=1
:state=1:movetotarget,animate=2,state=2
:state=2,reachtarget:activatetarget=1,animate=1,state=3
:state=3:rotatetoplr
;end of script