OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ryankaplan on 01 Aug 2004, 16:20:27

Title: what is opposite of soldier in vehicle?
Post 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
Title: Re:what is opposite of soldier in vehicle?
Post by: Planck on 01 Aug 2004, 16:41:11
Try:

bravo !(in november1)
or

? bravo !(in november1) : dosomething

Or something similar.

! means NOT
? means IF


Planck
Title: Re:what is opposite of soldier in vehicle?
Post by: Mud_Spike on 01 Aug 2004, 19:49:22
vehicle myUnit != some_vehicle

or, if you just want to ensure the unit is not in any vehicle:

vehicle myUnit == myUnit
Title: Re:what is opposite of soldier in vehicle?
Post by: GrimMonkey on 02 Aug 2004, 03:46:07
Put this code as the 'Condition' for a Trigger:

Code: [Select]
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