{"name":"triggerAttachVehicle","title":"triggerAttachVehicle","type":"command","url":"https://community.bistudio.com/wiki/triggerAttachVehicle","revid":377073,"updated":"2026-01-01T09:31:40Z","groups":["Triggers"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","locality":{"argument":"global","effect":"local"},"description":"Specifies the entity which will activate the selected trigger.\n\n- If **[]** is given, the trigger is decoupled from the assigned vehicle (example 2).\n- If the activation source is **\"VEHICLE\"**, **\"GROUP\"**, **\"LEADER\"** or **\"MEMBER\"**, it is changed to **\"NONE\"**.\n- If **[vehicle]** is given, the trigger is coupled to the vehicle or its group.\n- When the source is **\"GROUP\"**, **\"LEADER\"** or **\"MEMBER\"**, it is coupled to the group, otherwise it is coupled to the vehicle and the source is changed to **\"VEHICLE\"**.","syntaxes":[{"syntax":"triggerName triggerAttachVehicle objects","params":[{"name":"triggerName","type":"Object","type_expr":"Object"},{"name":"objects","type":"Array of Objects","type_expr":"Array<Object>"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"triggerName"},"right":{"text":"objects"}}],"examples":[{"code":["trigger triggerAttachVehicle [player];"]},{"code":["trigger triggerAttachVehicle [];"]}],"see_also":["attachObject","attachTo","attachedObjects","attachedTo","waypointAttachVehicle","waypointAttachedVehicle","lightAttachObject","attachedObject","triggerAttachedVehicle","triggerAttachObject","triggerInterval","setTriggerInterval"]}