ED Forums - View Single Post - MIssion Scripting Tools (Mist)- enhancing mission scripting Lua
View Single Post
Old 12-14-2017, 07:25 AM   #1330
chromium
3rd Party Developer
 
Join Date: Dec 2008
Location: Milan
Posts: 3,275
Default

Quote:
Originally Posted by Grimes View Post
Chromium, I'll look into it. As a quick fix you could probably make the units drive a little bit. If they spawn on a building, whenever the unit moves it gets teleported back to ground level. It might be a complicated mess in the future due to all the new trees on Caucuses and the tree positioning isn't exactly detectable.
That's the point. May I suggest you to check y value of the spawned unit, if it's > than land.getHeight you might assume that you're not on ground level (wouldn't work for bridges.. but could be feasible?). I might move the units but doing so I would lose larger "disperse" parameter.
__________________

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.
chromium is offline   Reply With Quote