kvntvan 13 Posted November 28, 2015 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
KokaKolaA3 394 Posted November 28, 2015 Try it with that: https://community.bistudio.com/wiki/ropeCreate Works fine! Share this post Link to post Share on other sites
kvntvan 13 Posted November 30, 2015 Try it with that: https://community.bistudio.com/wiki/ropeCreate Works fine! I'm sorry but how did you get it to work? following the syntax in the wiki, it just creates a rope attaching the heli to the truck but it doesn't fire off any task triggers? Share this post Link to post Share on other sites
Mamba Six 11 Posted November 30, 2015 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
kvntvan 13 Posted December 1, 2015 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
Mamba Six 11 Posted December 1, 2015 No problem, my pleasure! Share this post Link to post Share on other sites