OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dbl-Dutch on 22 Jan 2003, 07:54:17
-
Can some one explain what a "BOOLEAN" means? I don't mean to be dence, but it's the first time I heard this term :help:
Thanks
Dutch
-
isn't that the harder word for true or false
-
Dutch - a boolean is used for simple conditions.
They're used to check, wether a condition is met or not.
e.G: you have a trigger with condition: dutchie
Now somewhere else in a waypoint's or other trigger's
onactivation field, you type: dutchie = true
This means: the condition "dutchie" from that first trigger
is now met, and the trigger will activate.
You can also use the condition field in a waypoint to let
a unit/group wait there, until a boolean condition is met.
Also you should initialize the boolean to be false at the
start of the mission or you could probably run into strange
results in some cases. This you can do by: dutchie = false
You can do this in any unit's init field or in an init.sqs or
in a trigger (still some more ways but this should be enough).
~S~ CD
-
Boy! oh boy! :hmm: not complicated enough ;D cheers Chris