OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SpecOpWarrior on 24 May 2003, 20:53:34
-
I wanted to make a trigger follow behind somebody, and inside that trigger set it to : West, Present.
On Activation: guard1 switchmove FXStandSur
(He surrenders putting hands over head)
And so if you sneak up in back of him he yells I SURRENDER!
One problem, if the unit moves, how will the trigger move with him?
-
Hows about you set up a condition on your trigger utilizing the distance command ;)
something like
naming your group of west guys g with: g=group this
then in the condition field of your trigger use this:
g distance guard1 <2
same activation
you could of course substitute g for any other units name or ID
and I'm sure there must be a way to make it to where anyone on the
West/East side coming within x meters causes the trigger to go off.. I'm
just not positive on the syntax for that one ;)
:cheers: