![]() |
|
|
|||||||
| ArmA 2 & OA - MISSION EDITING & SCRIPTING For discussing the technical aspects of creating custom ArmA 2 & the standalone expansion Operation Arrowhead missions as well as scripting. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Sergeant
Join Date: Aug 2009
Location: Milverton, Ontario
Posts: 198
|
Attaching a Trigger to a vehicle
I'm trying to use this: http://community.bistudio.com/wiki/triggerAttachVehicle
But the trigger doesn't attach to the vehicle. I want to improve that so the trigger is attached to the VBIED, vs. having a stationary convoy.
__________________
|
|
|
|
|
|
#2 |
|
Master Sergeant
Join Date: Jun 2007
Posts: 784
|
Which vehicle has the trigger attached to it - the civ?
It looks like it works? Or are you saying that if the Hummer is moving, the trigger doesn't work? Sorry if I'm just being painfully dense.
__________________
-----------<T>---------- ![]() Creator of JTD Ambient Civilian Traffic Module (beta ver. 2). |
|
|
|
|
|
#3 |
|
Sergeant
Join Date: Aug 2009
Location: Milverton, Ontario
Posts: 198
|
I want it attached to the car.
Currently it's sitting around the HMMWV. I want the HMMWV to move.
__________________
|
|
|
|
|
|
#4 |
|
Staff Sergeant
Join Date: Nov 2009
Posts: 249
|
Can't you just script? so if CAR1 NearestObject == Hummer then Exec IED script
(Thats pseudocode btw... dont try it )
|
|
|
|
|
|
#5 |
|
Sergeant Major
Join Date: Jan 2005
Location: France
Posts: 1,713
|
Mmmm all this is very confusing. TriggerattachVehicle doesn't physically attach any trigger to a vehicle, but it does the same thing than when you group (F2) a trigger to a unit in the mission editor, so that only this unit can trigger the trigger.
As we don't know what your trigger does (apart from creating an explosion), we can't help you. Post the condition and activation line of this trigger. Last edited by ProfTournesol; 03-16-2010 at 08:59 PM. Reason: typo |
|
|
|
|
|
#6 |
|
Sergeant
Join Date: Aug 2009
Location: Milverton, Ontario
Posts: 198
|
http://562ndsappers.dyndns.org/files...0Test1.utes.7z Here's the mission.
__________________
|
|
|
|
|
|
#7 |
|
Sergeant Major
Join Date: Jan 2005
Location: France
Posts: 1,713
|
I don't intend to beta test your mission, just explain what your trigger does.
|
|
|
|
|
|
#8 |
|
First Sergeant
Join Date: Jun 2009
Location: UK
Posts: 913
|
If your talking about attaching a trigger made with the in game editor it's quite simple
trigname attachTo [vehiclename,[0,0,0]] |
|
|
|
|
|
#9 |
|
Sergeant
Join Date: Aug 2009
Location: Milverton, Ontario
Posts: 198
|
That did it, thanks.
__________________
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|