HC_Official Posted June 28, 2019 Posted June 28, 2019 Howdy folks, Trying to do some stuff with cargo sling loading I want to be able to work out when cargo is hooked / lifted. Are there any Events that can be used to trigger stuff in DCS scripting engine ? No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
MasterZelgadis Posted June 28, 2019 Posted June 28, 2019 I can't check now, but does the cargo appear as a unit in the trigger list? Then you can use the condition "Unit AGL higher than" "Sieh nur, wie majestätisch du durch die Luft segelst. Wie ein Adler. Ein fetter Adler." http://www.space-view.net
HC_Official Posted June 28, 2019 Author Posted June 28, 2019 (edited) I am looking to do this in the DCS scripting engine not in the ME, hoping there is some event handler for this stuff .... undocumented thus far thanks for replying tho Edited June 28, 2019 by HC_Official No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Hardcard Posted June 28, 2019 Posted June 28, 2019 (edited) @HC_Official You might want to try MOOSE, then: Edited June 28, 2019 by Hardcard [sIGPIC][/sIGPIC]
HC_Official Posted June 28, 2019 Author Posted June 28, 2019 (edited) been helping test the moose stuff for nearly 2 years now was asking about the DCS scripting engine event handlers in the hope they had something to handle this Edited June 28, 2019 by HC_Official No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Hardcard Posted June 28, 2019 Posted June 28, 2019 MOOSE ultimately uses DCS scripting engine functions. Check the MOOSE scripts used by missions like the one from the video, chances are you'll be able to write the same kind of thing using standard DCS code. [sIGPIC][/sIGPIC]
HC_Official Posted June 28, 2019 Author Posted June 28, 2019 MOOSE ultimately uses DCS scripting engine functions. Check the MOOSE scripts used by missions like the one from the video, chances are you'll be able to write the same kind of thing using standard DCS code. Lols, you do realise that the video you linked is from our Clans youtube channel and that I did the scripting of what you are seeing No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Hardcard Posted June 28, 2019 Posted June 28, 2019 Lols, you do realise that the video you linked is from our Clans youtube channel and that I did the scripting of what you are seeing Of course I don't realize it, easy for you to make the connection, since you created the nickname and are a member of Havoc Company. I stopped trying to make sense of people's nicknames on the internet long ago, HC might stand for "Hot Carrot", for all I know... :D Anyway, looks like you have this one covered ;) [sIGPIC][/sIGPIC]
HC_Official Posted June 28, 2019 Author Posted June 28, 2019 Hot Carrot lol , that my porno stage name Back to mission making, trying to see if there is some internal DCS event triggered when cargo stuff happens No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Grimes Posted June 28, 2019 Posted June 28, 2019 Made a request for event handlers related to cargo and troop transport a while back. No update on it. If you have a cargo object you should be able to use inAir() on it to see if it is on the ground or in air. If that fails then getPosition() ought to return accurately enough to determine that information. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
HC_Official Posted June 29, 2019 Author Posted June 29, 2019 thanks for replying Grimes, hope we get those added to DCS some time .... soon No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
Recommended Posts