Editor guide

Page 173

5.80 - Unit is giving out a command By using following Syntax one can enable a Unit to give out a command which will be executed even by herself or by another unit. The Example below explains some possibilities. In following examples you will see some possibilities of this commands. Name1 Name1 Name1 Name1

commandFire Name2 commandTarget Name2 commandMove Name2 commandStop Name2

- Name1 is firing on Name2 - Name1 gets Name2 as target - Name1 moves to Name2 - Name1 keeps standing

It´s also possible to do this with using Groups. And at this point the sense of the whole command comes out much more. If the Leader of a Group is giving out a command, so this one will be spoken out listenable and the group members are all executing this command. (units group Name1) commandFire Name2

5.81 - Has a unit recieved damage? It´s basically possible to request the damage of any unit or any Object for using them i.e. as condition for somethings else. Their different possibilities available to become it realized. I.e. whether a unit is still able to walk/run or to shoot. The following commands can be used. canStand - canMove - canFire - handsHit - getDammage Following a few syntax examples used in a script: ?! (canStand Name) : Name sideChat "Aah... my legs!" ?! (canMove Name) : Name sideChat "My car gas been damaged!" ?! (canFire Name) : hint "Name can´t fire!" ? (handsHit Name == 1) : Name sideChat "Aah... my hands!" ? (getDammage Player) > 0.5 : hint "You are hurt!" Bedenke: Never use a questionmark (?) in the conditionline of a trigger, cause its already intigrated. So following a small trigger example: Axis a/b: Condition: on Activation: 174

0 (handsHit Name == 1) Name sideChat "Aah... my hands!"


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.