Jump to content
Sign in to follow this  
kvntvan

ropeAttachedTo

Recommended Posts

hi, I'm trying to get a trigger to fire and complete a task where the players slingload a truck using "ropeattachedto" but it doesn't seem to be working, has anyone successfully used "ropeattachedto" yet and how did you do it? 

 

I've tried a few variations of the code and none of them seem to work. I'm sure the solution is really simple I'm just not proficient enough in scripting or mission coding to know what it is.  

Share this post


Link to post
Share on other sites

myHeli addEventHandler["RopeAttach",{TRUCK_ATTACHED = if ((_this select 2) isEqualTo myTruck) then [{true},{false}];}];
In trigger condition:

TRUCK_ATTACHED
Does this work? On my phone but should hopefully work.

Share this post


Link to post
Share on other sites
myHeli addEventHandler["RopeAttach",{TRUCK_ATTACHED = if ((_this select 2) isEqualTo myTruck) then [{true},{false}];}];
In trigger condition:

TRUCK_ATTACHED
Does this work? On my phone but should hopefully work.

 

Yes this works perfectly! Thank you!

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  

×