Arma 3 Scripting

Command in Triggers

triggerAttachedVehicle

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns vehicle attached to the trigger (for example using triggerAttachVehicle).

Important

The trigger could be local or remote but the result returned by this command will be for the vehicle attached locally on the client that executed the command. See createTrigger for more info.

Syntax

triggerAttachedVehicle trigger

Parameters:

Returns: Object

Examples

Example 1

_result = triggerAttachedVehicle triggerName;

See also

attachObject · attachTo · attachedObjects · attachedTo · waypointAttachVehicle · waypointAttachedVehicle · lightAttachObject · triggerAttachVehicle · attachedObject · triggerAttachObject