Gem-Editor/Manual/Chapter 4: Scripting/Chapter 4.2: Triggers

A trigger can have multiple forms Examples are:

1: An area the players enters [Zone].

2: An object that is in players inventory.

3: A specific unit/group is killed or vehicle disabled.

4: A flag is replaced. [Example]:Like in arsenal.

This trigger is the CONDITION to start the script written in COMMAND.

Condition 1: Zone
Step 1. Creating the trigger.

First we make the condition of the script.

To create a trigger go to F3 > Zone. Select a zone and give the zone an ID [Example: Trigger Area 1]



To set this as an condition go to Triggers (5th option, F3 mode). Right mouse button for at Conditions > select Near.



Select at UNITS: player0 (you) and Trigger Area 1 you just created. You now have created the condition: “If player0 enters Trigger Area 1” Then……


 * NOTE: Make sure if you use the Zone trigger, no entities (in F3 as in F2 mode) are placed in the zone that can trigger it unintentionally. (if triggered on player zero, no player zero objects (cars, generators, machinegun nests). To avoid this give it to an other player (1,2,etc).