Home   Help Search Login Register  

Author Topic: SCRIPTING  (Read 462 times)

0 Members and 1 Guest are viewing this topic.

Offline Dbl-Dutch

  • Members
  • *
SCRIPTING
« 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

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:SCRIPTING
« Reply #1 on: 22 Jan 2003, 10:55:54 »
isn't that the harder word for   true or false
Not all is lost.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:SCRIPTING
« Reply #2 on: 22 Jan 2003, 12:38:46 »
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
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline Dbl-Dutch

  • Members
  • *
Re:SCRIPTING
« Reply #3 on: 22 Jan 2003, 15:42:11 »
Boy! oh boy! :hmm: not complicated enough  ;D cheers Chris