Rabies Posted April 11, 2019 Posted April 11, 2019 In the mission editor I’m able to assign an AI helicopter to pick up and transport troops to a specific location. But for the life of me I can’t get a flight of helicopters to land, allow troops to embark, take off as a flight and land and disembark the troops at another location. Has anyone got any ideas on how to accomplish this? I have limited time due to family commitments etc. What is available is used for learning aircraft systems and flying, so the possibility of me finding the time to learn Moose is out of the question.
Hardcard Posted April 11, 2019 Posted April 11, 2019 (edited) This short MOOSE script should do the trick: local HeliSET = SET_GROUP:New() :FilterPrefixes( "Group name prefix of the helicopter flight in ME" ) -- Add this prefix to the group name of your transport helicopter flight in ME :FilterStart() local TroopSET = SET_CARGO:New() :FilterTypes( "Infantry" ) :FilterStart() -- The following cargo group will be added to TroopSET automatically, since its type is defined as "Infantry". You can create other cargo groups and add them in the same way local InfrantryGroup = CARGO_GROUP:New( GROUP:FindByName( "Name of your infantry group in ME" ), "Infantry", "Helo Troops", 500 ) local DeployZoneSET = SET_ZONE:New() :FilterPrefixes( "Zone name prefix in ME" ) -- Add this prefix to your deployment zone name in ME :FilterStart() local TransportDispatcher = AI_CARGO_DISPATCHER_HELICOPTER:New( HeliSET, TroopSET, nil, DeployZoneSET ) TransportDispatcher:Start() I've attached a test mission + script file. A group of 2 blackhawks will land near Kobuleti, pick up infantry troops, then head to the airstrip south of Kobuleti and deploy them there.Helicopter Transport test.mizChopper Transport test.lua Edited April 11, 2019 by Hardcard [sIGPIC][/sIGPIC]
SUNTSAG Posted April 11, 2019 Posted April 11, 2019 Or if scripts are not your thing: https://forums.eagle.ru/showpost.php?p=3725220&postcount=67 Callsign: NAKED My YouTube Channel [sIGPIC][/sIGPIC]
Rabies Posted April 12, 2019 Author Posted April 12, 2019 Hi Guy's Thanks for your replies; Hardcard, yeah that's what I would like to do, but unfortunately I can't get my head around .lua files and MOOSE. Suntsag, what I'm trying to do is have a flight of 4 helicopters land, all of them pick up troops and fly them to another location and disembark together.
Hardcard Posted April 12, 2019 Posted April 12, 2019 (edited) yeah that's what I would like to do, but unfortunately I can't get my head around .lua files and MOOSE. That's why I wrote the script for you, instead of telling you to write it yourself :D Anyway, all you need to do is introduce the group and zone name prefixes that you're using in ME. Then simply run the script via trigger in ME, as usual (you'll also need to run Moose.lua using a mission start trigger in ME). Required fields are marked in red (don't remove the quotes, just modify what's marked in red): local HeliSET = SET_GROUP:New() :FilterPrefixes( "Group name prefix of the helicopter flight in ME" ) -- Add this prefix to the group name of your transport helicopter flight in ME :FilterStart() local TroopSET = SET_CARGO:New() :FilterTypes( "Infantry" ) :FilterStart() -- The following cargo group will be added to TroopSET automatically, since its type is defined as "Infantry". You can create other cargo groups and add them in the same way local InfrantryGroup = CARGO_GROUP:New( GROUP:FindByName( "Name of your infantry group in ME" ), "Infantry", "Helo Troops", 500 ) local DeployZoneSET = SET_ZONE:New() :FilterPrefixes( "Zone name prefix in ME" ) -- Add this prefix to your deployment zone name in ME :FilterStart() local TransportDispatcher = AI_CARGO_DISPATCHER_HELICOPTER:New( HeliSET, TroopSET, nil, DeployZoneSET ) TransportDispatcher:Start() I'm only offering you this scripted option in case you don't find a way to make the helicopter flight behave as you want using ME triggers. Edited April 12, 2019 by Hardcard [sIGPIC][/sIGPIC]
ChuckJäger Posted April 12, 2019 Posted April 12, 2019 is there a way to use Moose to deploy troops from the Tarawa on to a Helo?? VFA-113 | Stinger 307 | "Hank" USN OEF OIF Veteran i7-8700K OC'd 4800ghz | Gigabyte GeForce RTX 2080Ti OC'd | 32gb RAM | 2.5TB SSD | Odyssey + | TM Warthog HOTAS |
Hardcard Posted April 13, 2019 Posted April 13, 2019 (edited) is there a way to use Moose to deploy troops from the Tarawa on to a Helo?? You know what? This makes for an interesting test, I'll try now and let you know :D EDIT Short answer: It's not possible Silly answer: You can place a static Tarawa on land and put the troops inside the 3D model. Since the static Tarawa has no collision box, troops and helicopters will be able to clip through it without problems... So, in a sense, the helos will pick up troops from the Tarawa :D Edited April 13, 2019 by Hardcard [sIGPIC][/sIGPIC]
SUNTSAG Posted April 13, 2019 Posted April 13, 2019 is there a way to use Moose to deploy troops from the Tarawa on to a Helo?? With Mods you can achieve your goal, with a few limitations. This mod will allow you to place troops in the hull of the Tarawa: https://forums.eagle.ru/showthread.php?t=206282 The attached mission shows it in action: Cheers :thumbup:EMBSHIP.miz Callsign: NAKED My YouTube Channel [sIGPIC][/sIGPIC]
SUNTSAG Posted April 13, 2019 Posted April 13, 2019 In the mission editor I’m able to assign an AI helicopter to pick up and transport troops to a specific location. But for the life of me I can’t get a flight of helicopters to land, allow troops to embark, take off as a flight and land and disembark the troops at another location. Has anyone got any ideas on how to accomplish this? I have limited time due to family commitments etc. What is available is used for learning aircraft systems and flying, so the possibility of me finding the time to learn Moose is out of the question. The ME setup needs to include multiple helicopter groups as well as troops to get this to work without scripting. I have included an example mission as a guide. It contains X3 helos transporting X3 sets of troops. Cheers.EMBDISEMB 3 SHIP.miz Callsign: NAKED My YouTube Channel [sIGPIC][/sIGPIC]
ChuckJäger Posted April 13, 2019 Posted April 13, 2019 You know what? This makes for an interesting test, I'll try now and let you know :D EDIT Short answer: It's not possible Silly answer: You can place a static Tarawa on land and put the troops inside the 3D model. Since the static Tarawa has no collision box, troops and helicopters will be able to clip through it without problems... So, in a sense, the helos will pick up troops from the Tarawa :D Bummer! Seems like something that should be wish listed. I'm on it! VFA-113 | Stinger 307 | "Hank" USN OEF OIF Veteran i7-8700K OC'd 4800ghz | Gigabyte GeForce RTX 2080Ti OC'd | 32gb RAM | 2.5TB SSD | Odyssey + | TM Warthog HOTAS |
Hardcard Posted April 14, 2019 Posted April 14, 2019 With Mods you can achieve your goal, with a few limitations. This mod will allow you to place troops in the hull of the Tarawa: https://forums.eagle.ru/showthread.php?t=206282 Interesting stuff! :thumbup: How did you discover canSwim and canWade? Are they listed somewhere? Btw, there are ways in MOOSE to spawn infantry at sea without the need for canSwim = true. :SpawnFromUnit(), :SpawnFromStatic(), etc. can be used to spawn infantry on ships and statics placed at sea. However, the problem is still the same, they will spawn on the sea surface instead of on the carrier's deck. I also tried stacking static buildings inside the carrier, in order to provide a "solid ground" (just below the deck) so infantry units can walk and helicopters can land... limited success so far, infantry units have trouble reaching the buildings on the top. [sIGPIC][/sIGPIC]
SUNTSAG Posted April 14, 2019 Posted April 14, 2019 Interesting stuff! :thumbup: How did you discover canSwim and canWade? Are they listed somewhere? I was creating the code for a amphibious vehicle mod and voila. LOL. I think I can now create a mod so that troops will appear on the Tarawa deck at the correct height.I will release it shortly. Cheers. Callsign: NAKED My YouTube Channel [sIGPIC][/sIGPIC]
Recommended Posts