Ciribob Posted June 28, 2015 Posted June 28, 2015 Is there anyway to determine in LUA if a helicopter has landed on the roof of a building? The inAir() function always returns true when you're on one unfortunately. Is there a ray trace function that will hit a static object (so you can determine height above the building)? Or is the only way to check if the unit has 0 velocity which you can then assume they're on something as it's unlikely they will hold a hover that stable? Any ideas or pointers would be very helpful! What I'm trying to achieve is I'd like helicopters with the CTLD script to be able to deploy a Stinger on the roof of a building. Thanks! Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :) DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord
Wrecking Crew Posted June 28, 2015 Posted June 28, 2015 Check the Vulcans And Sharks mission on my Wrecking Crew Projects site. Let me know if you have questions :) Also: http://forums.eagle.ru/showthread.php?t=132968 http://forums.eagle.ru/showthread.php?t=132956 WC Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.
Ciribob Posted June 28, 2015 Author Posted June 28, 2015 Thanks for the info! I was thinking along the same lines with the velocity. This is what i've come up with as a new inAir Function function ctld.inAir(_heli) if _heli:inAir() == false then return false end -- less than 5 cm/s a second so landed if mist.vec.mag(_heli:getVelocity()) < 0.05 then return false end return true end Scripts: Complete Transport And Logistics Deployment - CTLD / CTLD Examples - Lots of example of how to use CTLD CSAR Script - Downed Pilot Rescue / Dedicated Server Script - Automatically launch DCS Multiplayer server at startup Range Scoring Script - Get scores and counts hits on targets for gunnery or bombs / SimpleSlotBlock - Multiplayer dynamic Slot Blocking Script Projects: DCS-SimpleRadio Standalone - DCS Radio Integration for All Aircraft - NO TeamSpeak Required! :) DCS-SimpleRadio Troubleshooting Post / DCS-SimpleRadio Free Support Channel on Discord
Recommended Posts