OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Crowey on 03 Jun 2008, 22:28:42

Title: Moving trigger???
Post by: Crowey on 03 Jun 2008, 22:28:42
LOL you guys gonna get sick of me, lol.
Any way to attatch a trigger to a vehicle? the reason i ask is  basically if the player unit gets too close to the enmy unit whilst in a vehicle(or on foot i suppose would work the same?) the enemy would be alerted? ie following in a car and player pulls up too close so the enemy gets out and engages?
Title: Re: Moving trigger???
Post by: Planck on 04 Jun 2008, 00:17:24
triggerAttachVehicle (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=t#802) perhaps?


Planck
Title: Re: Moving trigger???
Post by: Mandoble on 04 Jun 2008, 00:45:08
mmm, I think that command just "groups" the trigger with a unit or vehicle, that is, detects its presence, or the presence of group members. I dont think it really displaces the trigger with the vehicle.

But you can setPos a trigger in a loop to follow the position of a vehicle. Just consider that once the trigger placement is changed, it might take a second before its list of affected units is updated from the new position.
Title: Re: Moving trigger???
Post by: schuler on 04 Jun 2008, 06:08:45
Code: [Select]
? velocity vehicle > 50 : [] trigger1
;with Planck's   
trigger1 triggerAttachVehicle [player]
maybe?