![arma 3 trigger activated by specific unit arma 3 trigger activated by specific unit](https://www.mdpi.com/sensors/sensors-21-01712/article_deploy/html/images/sensors-21-01712-g010.png)
Remove all weapons and add weapons to unit Bob limitSpeed 60 limits the units speed to 60kph Bob setSpeed getSpeed Nick Bob matches speed of Nick Bob forceSpeed 120 forces the unit to move at a certain speed up to the max speed for the unit. To change the speed of a unit or limit it there are several codes: Bob setSpeedMode “Full” is available in Auto, Limited, Normal, Full. Change to RED, YELLOW, BLUE, ORANGE for different colors or use classnames for other objects like grenades, vehicles, etc. This code, if put into the ‘On Activation’ field of a trigger will create a purple smoke grenade 50 meters above Bob’s head: Bobsmoke = “SMOKESHELLPURPLE” createVehicle You must use the correct object ID “SMOKESHELLPURPLE” or the trigger won’t work. Spawn an object at another object’s location Type: Bob allowfleeing 0 To allow change 0 to 1.
ARMA 3 TRIGGER ACTIVATED BY SPECIFIC UNIT CODE
To disable this, the code may be used as an ‘Activation’ or ‘Initialization’. When a unit feels it is at a disadvantage it may flee. If trying to place more than one unit as gunner, use Bob moveinturret ] where #0 is gun position 1, #1 is position 2, etc. 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 “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.
![arma 3 trigger activated by specific unit arma 3 trigger activated by specific unit](https://secure.gravatar.com/avatar/a3f88d5e21da51afcc0b05d89d089c97?d=https://forums.bohemia.net/uploads/set_resources_8/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png)
This can be used as a Condition, Initialization or Activation.