OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ace Productions on 14 Jan 2004, 18:18:46
-
Hi everybody,
I have a quick scripting question.
How can I set as a condition for a loop to be exited only if UnitA is present in TriggerA?
I guess it has to do with thislist but I don't know the exact way. ::)
-
On the top of my head try
unita in list triggername
if it's in a script (name the trigger), and
unita in thislist
if it's in a trigger
-
I suspect the trigger would have to be "triggered" by unitA. So, for example, if unitA was East then the trigger Activation box would have to be East present or East not present. You might have to set the trigger to repeatedly, otherwise it might be triggered by somebody else before unitA arrives.
If unitA is a group leader then group the trigger to him, as if it was another loon, and you'll get new options in the On Activation box.
-
Guys thanks a lot both of you for your replies.
Artak you are perfectly right as always.
Thank you again.