Jump to content
Sign in to follow this  
mtlgd

triggerAttachVehicle

Recommended Posts

I've been beating my brains out over this all day.

I have a trigger named testTrigger which is Sensor ID =0 if it matters. I have an M1030 named MyBike vehicle ID = 0. I want to assign this trigger to this bike. I've tried multiple methods but nothing seems to work. Has anyone ever used this, and if so, could you provide your line of code as example. The Wiki says its:

 

trigger triggerAttachVehicle [vehicle]

How do I refer to the vehicle in this context? Any help would be greatly appreciated.

Mtl

Share this post


Link to post
Share on other sites

I'm not exactly an ArmA coding expert, but have you typed in:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">testTrigger triggerAttachVehicle [MyBike]

It could help if you tell us what you've tried. smile_o.gif

I hope you figure it out soon!

Abs

Share this post


Link to post
Share on other sites

@Bratty Yes it does, if I would have seen that, I would have posted it there, thanks.

Could a Mod move this for me please?

Never mind, I did get it to work, it just doesn't work the way I thought it would. I thought it attached the trigger to the vehicle, instead it sets the vehicle which will trip the trigger.

And the final string was testTrigger triggerAttachVehicle [MyBike], which I had already tried but didn't notice the effect.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×