Important

 

Please pay attention for the following notes

 

 

Labels and the goto commands

 

To jump in a script forward or backward you must use labels

and goto commands like this example shows:

 

#start

John setdamage 0

~0.1

goto "start";

 

This script effects that the unit John will be healed every 0.1 seconds

because after 0.1 seconds the script reads the goto "start"; entry and will

jump to the #start label

 

 

this, player and Jack

 

this It cannnot be used in scripts just in the game for example in a init line

and it ever relates the unit with the this command.

 

player Is the player on the local computer

 

Jack and all the other names are variables and can used everywhere

 

 

Comments in a script

 

To write a comment in a script you must set a semicolon before the comment.

 

 

The init.sqs file

 

The init.sqs file will be automatically load with the mission

you can create this file only if you need one.

The file must be in the root folder of the mission.

 

 

The when then condition

 

These two fields in the game...

 

 

...looks like this in a script:

 

? Condition : Activation

 

or like this:

 

if (Condition ) then {Command1;Command2}