SE_unitY for the rescuing unit or picking up unit?

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
KLAB
Posts: 483
Joined: Tue Feb 27, 2007 5:24 pm

SE_unitY for the rescuing unit or picking up unit?

Post by KLAB »

SE_unitY()?
Reading current LUA guides this is only for the destroying unit or the detecting sensor for the activating unit SE_unitX().

So my query (and or request?) is can SE_unitY be triggered by the "rescuing" unit as it doesn't seem to trigger unit Y when the unit isn't a weapon or unit X WasPickedUp?

I want the SAR helo unit to collect the rescued units crew and impose limits on the number of rescued and rescues the SAR unit can carry out?
Currently the helo can pick up hundreds of people going from one life boat to the next.
I've tried to think laterally in terms of using a cargo transfer function but have drawn blanks?

How do you get the rescuing unit from a waspickedup event?

Any assistance much appreciated please.
K
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: SE_unitY for the rescuing unit or picking up unit?

Post by michaelm75au »

What are you using to trigger the pickup event?
I have added a new property to the unit wrapper - pickUpTarget which is the unit that will be picked up.
Michael
User avatar
KLAB
Posts: 483
Joined: Tue Feb 27, 2007 5:24 pm

Re: SE_unitY for the rescuing unit or picking up unit?

Post by KLAB »

Unit destroyed SE_UnitX with a WasPickedup condition?
Only on my phone so cant post the actual script yet.

Not too up to date on the unit status change trigger or how to convert that to grabbing the pick up unit.
Thanks for reply.
K
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: SE_unitY for the rescuing unit or picking up unit?

Post by michaelm75au »

There will be a new property on the unit being picked up that can be tested; it will be the GUID of the unit doing the pickup. This may also be passed as the UnitY.

For the next build.
Michael
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

Re: SE_unitY for the rescuing unit or picking up unit?

Post by KnightHawk75 »

michaelm75au wrote: Fri Dec 02, 2022 11:08 am There will be a new property on the unit being picked up that can be tested; it will be the GUID of the unit doing the pickup. This may also be passed as the UnitY.

For the next build.
Cool, thanks m!
User avatar
KLAB
Posts: 483
Joined: Tue Feb 27, 2007 5:24 pm

Re: SE_unitY for the rescuing unit or picking up unit?

Post by KLAB »

Much Obliged.
K
Post Reply

Return to “Lua Legion”