Warning: file_put_contents(/ff_05bf7cc62206d39e94f67752c47ef4b7480f73dd0711ad3c.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


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

If the activation source is one of:


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:


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

Used In



trigger triggerAttachVehicle [player]