Arma 3 spawn ai on trigger

broken image
broken image

The word ‘cargo’ can be swapped with ‘gunner’, ‘driver’, ‘commander’, and ‘turret’ to force these positions. Use this code in the ‘On Activation’ field to light a campfire: fire1 inFlame true Switch to false to put it out.įor each unit use Bob moveincargo car1 This can be used in the ‘Initialization’ field of a unit from the beginning or used in the ‘On Activation’ field of a trigger or waypoint. Upon waypoint activation: in waypoint’s ‘On activation’ field type Bob setdammage 0.5 Upon trigger activation: in trigger’s ‘On activation’ field type Bob setdammage 0.5 It has a value from 0 to 1 with 1 being 100% damage. Upon waypoint activation: in waypoint’s ‘On activation’ field type car1 setfuel 0.5 Upon trigger activation: in trigger’s ‘On activation’ field type car1 setfuel 0.5

broken image

“setfuel” has a value from 0 to 1 with 1 being 100% fuel. To angle an object on any axis, use this code: car1 setVectorUp or car1 setVectorDir The numbers represent x, y, z axis. To set the flying height of an aircraft at each waypoint, just type the code plane1 flyinheight 60 into the ‘On Activation’ field of the waypoint. If this is typed into a units ‘Initialization’ field, ‘Bob’ can be substituted with ‘this’. In any of the fields described above, type: this setPos The height is declared by the last number, in meters. It will immediately place the unit at the desired height. This can be used as a Condition, Initialization or Activation.