Jump to content

Trigger() and SendTrigger()


Echon

Recommended Posts

This is another form of communication between scripts, very much like GiveOrder. The range appears to be the same and only one creature can respond to a trigger at a time. The object, LastTrigger, does not get set after having recieved a trigger. The following script resulted in a lot of randomwalk and no dying at all.

 

IF
See(LastTrigger)
THEN
RESPONSE #100
 Kill(Myself)
END

IF
Trigger(1)
THEN
RESPONSE #100
 RandomWalk()
END

IF
See(Player1)
THEN
RESPONSE #100
 SendTrigger([ANYONE],1)
END

 

-Echon

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...