Bohemia Interactive Forums  

Go Back   Bohemia Interactive Forums > BI MILITARY GAMES FORUMS > ARMA 2 EDITING > ArmA 2 & OA - MISSION EDITING & SCRIPTING

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.

Reply
 
Thread Tools Display Modes
Old 03-16-2010, 07:38 PM   #1
JDMT
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.
__________________
JDMT is offline   Reply With Quote
Old 03-16-2010, 07:43 PM   #2
TRexian
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).
TRexian is offline   Reply With Quote
Old 03-16-2010, 08:01 PM   #3
JDMT
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.
__________________
JDMT is offline   Reply With Quote
Old 03-16-2010, 08:52 PM   #4
rexehuk
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 )
rexehuk is offline   Reply With Quote
Old 03-16-2010, 08:58 PM   #5
ProfTournesol
Sergeant Major
 
ProfTournesol's Avatar
 
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
ProfTournesol is offline   Reply With Quote
Old 03-16-2010, 09:10 PM   #6
JDMT
Sergeant
 
Join Date: Aug 2009
Location: Milverton, Ontario
Posts: 198
http://562ndsappers.dyndns.org/files...0Test1.utes.7z Here's the mission.
__________________
JDMT is offline   Reply With Quote
Old 03-16-2010, 09:11 PM   #7
ProfTournesol
Sergeant Major
 
ProfTournesol's Avatar
 
Join Date: Jan 2005
Location: France
Posts: 1,713
I don't intend to beta test your mission, just explain what your trigger does.
ProfTournesol is offline   Reply With Quote
Old 03-16-2010, 09:32 PM   #8
F2k Sel
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]]
F2k Sel is offline   Reply With Quote
Old 03-16-2010, 10:23 PM   #9
JDMT
Sergeant
 
Join Date: Aug 2009
Location: Milverton, Ontario
Posts: 198
Quote:
Originally Posted by F2k Sel View Post
If your talking about attaching a trigger made with the in game editor it's quite simple

trigname attachTo [vehiclename,[0,0,0]]
That did it, thanks.
__________________
JDMT is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.