Home   Help Search Login Register  

Author Topic: retreat  (Read 1104 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkattack

  • Former Staff
  • ****
retreat
« 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

"HOLY SARDINE" - see Shark-Attack meet his match

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: retreat
« Reply #1 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
« Last Edit: 19 Jun 2008, 22:00:55 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline sharkattack

  • Former Staff
  • ****
Re: retreat
« Reply #2 on: 21 Jun 2008, 17:22:41 »
thanks mate
 
will give it a go ...
"HOLY SARDINE" - see Shark-Attack meet his match