OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Blanco on 17 Jan 2003, 22:56:28
-
Plz, correct me if I wrong...
NOT is the same as !
IF is the same as ?
THEN is the same as :
OR is the same as ||
but...
ELSE is the same as ???
-
Yeah... kind of ;)
the ? : statement is kind of the same as an IF THEN statement, the exception being you can't put an ELSE on the end.
However, due to BIS's great genius... you can now use the syntax:
if (condition) then {command} else {othercommand}
So for example:
if (alive Bob) then {[Bob] ordergetin true} else {unassignvehicle Bob}
So that line will see if Bob is alive, and tell him to get in the vehicle. If he's dead, it'll unassign bob from the vehicle ;)
-
aha... :D thx