RS30002 28 Posted March 13, 2022 Hi all, looking for a quik 'n derrty solution for landing helicopters on the deck of the LHD. Can't use waypoints because it's the search and rescue helicopter connected to the transport module. I found some snippet on steam forums (code below), but this doesn't work, or idk, they just start up engines and hover at start of the mission which is useless, even if they do land afterwards. (yes i did name everything correctly) I don't think the helipad works, because when i place it, it doesn't appear to be on the deck. It's somehow invisible (didn't pick the invisible one). Thanks in advance for any input 🙂 0 = [] spawn { _helo = helo_0; _pad = pad_0; _helo move (getPosATL _pad); waitUntil {_helo distance2D _pad < 200}; doStop _helo; _helo land "LAND"; waitUntil{isTouchingGround _helo}; sleep 0.1; _helo engineOn true; }; Share this post Link to post Share on other sites
stburr91 1010 Posted March 13, 2022 I tested this with the USS Freedom because I don't have the LHD, the code you have works perfectly using the invisible helipad. I would say try the invisible helipad, and see if that works for you. Share this post Link to post Share on other sites
RS30002 28 Posted March 13, 2022 43 minutes ago, stburr91 said: I tested this with the USS Freedom because I don't have the LHD, the code you have works perfectly using the invisible helipad. I would say try the invisible helipad, and see if that works for you. You tested in such a way the helicopter took off from the positioned pad on the ship, went to pick you up and then landed back on the same pad? How did you avoid them flying into the air immediately after mission start? If you put helicopters on land and then they went to land on the ship it isn't applicable for what i want. They need to have the same start and end point and i think this {_helo distance2D _pad < 200} + _helo engineOn true; makes them go hover right at start. While writing this i got an idea tho.... maybe i could get away by placing two helipads 50 meters apart, editing the <200 condition into 50 and do it like that. We'll see if it registers that it has to land only 50 meters from the pad on the return journey tho. Share this post Link to post Share on other sites
RS30002 28 Posted March 13, 2022 Okay, so by testing i was able to confirm it definitely can land on the deck. Still having the same problem tho.....it takes off and moves to the pad. I use the above quoted code in a game logic. After further examination of the code i realized this _helo move (getPosATL _pad); is making it move 😬 Is there a way to put in a condition like player on board (i know how to do that) and "support has been called" (i dont know how to do that) so it doesn't take off immediately and executes the code only when returning to the ship? -edit: aight, working code 😊 this now works by calling it to pick me up through the 0-8 menu, when i sit in it, it automatically goes off to the ship and lands. (no clicking on the map for destination in the 0-8 menu anymore) It's also probably repeatable, idk have to be shot down twice to test 0 = [] spawn { _helo = helo_0; _pad = pad_0; waitUntil {f35d in _helo}; _helo move (getPosATL _pad); waitUntil {_helo distance2D _pad < 100}; doStop _helo; _helo land "LAND"; waitUntil{isTouchingGround _helo}; sleep 0.1; _helo engineOn false; }; Share this post Link to post Share on other sites