OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ryankaplan on 01 Aug 2004, 16:20:27
-
well basicly all i want to do is learn if a soldier is out of a vehicle. he starts in it so i need to learn when he is out.
i tried bravo in november1 == false but that didn't work. it also didn't work with only 1 equals sign (=).
someone please help....
thanks
-
Try:
bravo !(in november1)
or
? bravo !(in november1) : dosomething
Or something similar.
! means NOT
? means IF
Planck
-
vehicle myUnit != some_vehicle
or, if you just want to ensure the unit is not in any vehicle:
vehicle myUnit == myUnit
-
Put this code as the 'Condition' for a Trigger:
Not (Bravo In November1)
And put whatever you want for the 'On Activation' field.
So once Bravo exits November1, whatever you put in the 'OA' will instantly activate.
This should work.
Beware the GrimMonkey