Triggers give you the ability to trigger on/off certain actions (for example section movement or weapon fire) with other actions (for example when certain section reaches specific angle or weapon acquires a target). Trigger parameters are located in EDIT tab for sections and ED2 tab for weapons.
'Mode' field defines what kind of behavior will be triggered. For sections, it is Move, Rotate, and Fade, and Move+Rotate. For weapons, its Online/Offline (if weapon is offline, it won't shoot, rotate, or gain targets), Shooting, Force fire (means that the weapon will be forced to fire, in this mode the off trigger has no effect).
There are two types of triggers: trigger on and trigger off. As the name suggest, trigger on triggers something online (for example, start rotation), trigger off puts it offline (stops rotation). For both triggers, you can pick two actions to fire that trigger (so that you can trigger something with two different actions). To pick actions, use fields called 'Trigger on action 1/2' and 'Trigger off action 1/2'.
Frames elapsed (self) - Will trigger when a set number of frames has elapsed after its been triggered off (if its set for 'trigger on action 1') or triggered on (if its set for 'trigger off action 1'). There is a separate field ('On frames' and 'Off frames') for defining the amount of frames.
Key pressed: , (comma), . (period), / (slash) - Will trigger when the picked key is pressed.
Rotation reach CW/CCW border - Will trigger when the picked rotation border is reached.
Movement reach target/origin - Will trigger when move target/origin is reached.
Fade reach hi/lo limit - Will trigger when the selected fade limit is reached
Weapon fire - will trigger when weapon fires
Weapon acquired target - Will trigger when weapon has acquired target (providing that there was no target before)
Weapon lost target - Will trigger when weapon has lost target (providing that no new target has been assigned at the same time)
Actions that have (self) or (s) beside their name mean that the action will be taken from the same section that will be triggered; the section will trigger itself. For example, if you set the section to rotating and enabled borders, set on trigger to 'Rotation reach CW border (self)', and set mode to Move, it will mean that once this section has reached CW border while rotating, itll also start moving.
For actions that have no (self) tag, you will need to set a trigger on/trigger off parent. Do that by right clicking on the desired parent (section or weapon) while you have a section/weapon selected, and picking either 'Set on trigger 1/2' or 'Set off trigger 1/2'. For example, if you have set 'Trigger on action 1' to 'Fade reach hi limit', you will need to right click on a section that fades and pick 'Set on trigger 1'. If youve picked one of the weapon-specific actions for off trigger action 1/2, you will have to click on a weapon and set pick 'Set off trigger 1/2'. Cyan arrows indicate on trigger parents, magenta arrows indicate off parents, and blue arrows indicate that both on and off triggers are set to that parent (you can turn them off by using 'Trigger Lines' option from Commands menu).
If all trigger actions are set to the same actions, and they have the same trigger parent (doesn't matter for (self) triggers), the action will toggle selected behavior between on and off.
You can set the delay in triggering a behavior (mode) after receiving a trigger for both triggers (will apply to both actions) by using the 'On delay' and 'Off delay' fields.
You can preview key triggers (as well as other triggers) in preview mode by pressing relevant keys. Triggers will be executed for all section/weapons with those actions as on/off trigger. You can trigger weapon fire/weapon gained target/weapon lost target in the same way by pressing Q, W and E respectively. disable shooting with 'Shooting' field in ED2 tab.
Last edited by Kaelis on Tue Feb 03, 2009 12:18 am, edited 1 time in total.