Home   Help Search Login Register  

Author Topic: chande behavior with trigger?  (Read 521 times)

0 Members and 1 Guest are viewing this topic.

CarlHill

  • Guest
chande behavior with trigger?
« on: 11 Dec 2002, 23:14:55 »
If I've got a bunch of units in a camp with their behavior set to "safe", how do I change that to "aware" when the enemy is in closer proximity? I assume it's with a trigger, but what goes in the initialization field?

CH

CrashnBurn

  • Guest
Re:chande behavior with trigger?
« Reply #1 on: 12 Dec 2002, 03:56:40 »
I would use 2 triggers for this type of thing. First, a detection trigger. If the units in the base are west, you'd make a trigger that extends a good distance beyond the base of type- East, detected by west. In the on activation put- detected=true. Next, make another trigger that covers just the base of type, west, present, and in the condition put detected. In the on activation you'd put-

aware = "AWARE"; "_x setbehaviour aware" foreach thislist

That should change all the west soldiers in the base to aware behaviour. This is an easy way to change behaviour for multiple groups. It can also be done by synchronizing waypoints with the detection trigger if you only have 1 or 2 groups. There's almost always several ways to do things with this game.