LUA for simulating boarding (from a helicopter)

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
Exilemnord
Posts: 15
Joined: Tue May 31, 2022 4:33 pm

LUA for simulating boarding (from a helicopter)

Post by Exilemnord »

Could someone point me towards some LUA that would allow me to simulate (trigger, really)a boarding of a ship by helicopter born infantry? I can't use the proximity reference points as the targeted ship begins in a port (so can't set them up.) Just need the trigger to go off when the helicopter is very close to the ship (and maybe some advice on a flight plan that would send the helo directly over the ship.) Once it triggers I can write the rest of the script (changing sides and headed to a new port etc.) Thanks
Last edited by Exilemnord on Tue Dec 12, 2023 1:09 pm, edited 1 time in total.
User avatar
KLAB
Posts: 482
Joined: Tue Feb 27, 2007 5:24 pm

Re: LUA for simulating boarding (from a helicopter)

Post by KLAB »

User avatar
blu3s
Posts: 1001
Joined: Fri Jul 08, 2022 9:45 am

Re: LUA for simulating boarding (from a helicopter)

Post by blu3s »

Use a trigger of units remains in area or unit enters area, with an area that is relative to the ship (you'll need to create this RP in the ship's side but there's no problem regarding the trigger). When the trigger fires, you can check if the unit is your helicopter and perform the rest of actions
Exilemnord
Posts: 15
Joined: Tue May 31, 2022 4:33 pm

Re: LUA for simulating boarding (from a helicopter)

Post by Exilemnord »

Thank you Klab.

Blu3s. Can't use proximity reference points as the ship begins in port.
User avatar
blu3s
Posts: 1001
Joined: Fri Jul 08, 2022 9:45 am

Re: LUA for simulating boarding (from a helicopter)

Post by blu3s »

Mmm sets an event on UnitStatus change to generate on the fly these RPs, also you can check the status of any of your units using unit.condition so a regular 1min trigger to check the status of the ship and create the RP's and delete this event could also address the issue
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: LUA for simulating boarding (from a helicopter)

Post by Parel803 »

Good evening,

I believe Apache (Rory) had somthing like this in his 'Seventh District Vice' scenario.

best regards GJ
Post Reply

Return to “Lua Legion”