Triggers
33 scripting commands. Also as Markdown for agents.
- createTriggerCreates a trigger of the given type and at the given position. The type must be a class name in *CfgNonAIVehicles* or *CfgVehicles* with `simulation…
- inAreaChecks whether given position or object is inside given area. Use inAreaArray to check multiple positions/objects within area.
- inAreaArrayReturns given list of Objects and/or Positions that are in the given area, area defined by a trigger, marker, location or array.
- inAreaArrayIndexesReturns indices of positions that are within the provided area.
- listList of units that would activate given Trigger.
- setEffectConditionThe statement is executed when the trigger or waypoint is activated and the effects are launched depending on the result.
- setMusicEffectDefines a music track played on activation. If another track is playing already, this will stop it and start the new track.
- setRadioMsgSets radio trigger menu title text (0 -> 0 -> map radio). Use "NULL" to disable radio slot. Use "" to restore default title.
- setSoundEffectDefines the different sound effects for a trigger or a waypoint. To stop any sound, deactivate the trigger (might take up to 0.5 seconds to stop) or…
- setTitleEffectDefines the title effect to show on activation via [Type, Effect, Text] where
- setTriggerActivationDefines the trigger activation type.
- setTriggerAreaDefines the area monitored by the given trigger. The area could be either rectangular or elliptical.
- setTriggerIntervalSets the interval in seconds for trigger condition check.
- setTriggerStatementsDefines trigger condition, activation and deactivation statements. Trigger condition has to return Boolean. true will activate the trigger, false…
- setTriggerTextSets the text label attached to the trigger object. This is used for example as a radio slot label for radio activated triggers.
- setTriggerTimeoutDefines the time between condition satisfaction and trigger activation (randomly from min to max, with an average value mid). If the last argument is…
- setTriggerTypeSets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):
- synchronizedTriggersReturns the list of triggers synchronized with a given waypoint.
- synchronizedWaypointsReturns the list of waypoints synchronized with a given trigger or waypoint.
- synchronizeTriggerSynchronizes the trigger with zero or more waypoints.
- synchronizeWaypointSynchronizes the trigger or the waypoint with an array of waypoints.
- triggerActivatedReturns true if the trigger has been activated.
- triggerActivationReturns trigger activation.
- triggerAreaReturns currently monitored trigger area. Since Arma 3 v1.60, the command returns 3rd dimension for the monitored area. If height is not set, the…
- triggerAttachedVehicleReturns vehicle attached to the trigger (for example using triggerAttachVehicle).
- triggerAttachObjectAssigns a static object to the trigger. The activation source is changed to "STATIC".
- triggerAttachVehicleSpecifies the entity which will activate the selected trigger.
- triggerIntervalReturns trigger condition check frequency in seconds.
- triggerStatementsReturns trigger statements.
- triggerTextReturns trigger text.
- triggerTimeoutReturns trigger timeout.
- triggerTimeoutCurrentReturns current timeout of the given trigger or -1 if countdown is not in progress.
- triggerTypeReturns the trigger type.