OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: sharkattack on 19 Jun 2008, 18:55:18

Title: retreat
Post by: sharkattack on 19 Jun 2008, 18:55:18
hi  lads
something has me stumped   ???

how do i go about making  all enemy units within a trigger zone  retreat  / withdraw,  once a condition has been met ?
(mp friendly) 

cheers

                         shark

Title: Re: retreat
Post by: laggy on 19 Jun 2008, 21:57:54
Hi.

Even though I haven't tried it, I'm pretty sure this will work:

Trigger1:
OPFOR present
Condition: this AND IsServer
Name the trigger i.e cowards

Trigger2
Condition: MyVariable AND IsServer
OnActivation: {_x domove getpos whatever} forEach list cowards

Guess this might be one of your not wanted solutions, but if not...
You should be able to have multiples of type Trigger1 for additional (resistance) sides. Just change trigger name.

Cheers

Laggy
Title: Re: retreat
Post by: sharkattack on 21 Jun 2008, 17:22:41
thanks mate
 
will give it a go ...