Warning: file_put_contents(/ff_a47122bcd6eff77fb48217c269809df7c58312d90e8477c2.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
triggerAttachVehicle - OFPEC Scripting Command Reference | OFPEC The Editing Center

triggerName triggerAttachVehicle [] or [vehicleName]

Operand types

triggerName: Object
[] or [vehicleName]: Array

Type of returned value

Description

If [] is given, the trigger is detached from the assigned vehicle.

If the activation source is one of:

* "VEHICLE"
* "GROUP"
* "LEADER"
* "LEADER"

The activation source is changed to "NONE".
If [vehicle] is given, the trigger is attached to the vehicle or its group.

When the source is:

* "GROUP"
* "LEADER"
* "MEMBER"

It's attached to the group, otherwise it's attached to the vehicle and the source is changed to "VEHICLE".

Used In

ArmA

Example

trigger triggerAttachVehicle [player]

Advertisement