Page 1 of 1

SE_unitY for the rescuing unit or picking up unit?

Posted: Tue Nov 29, 2022 10:59 pm
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

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

Posted: Thu Dec 01, 2022 7:22 am
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.

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

Posted: Thu Dec 01, 2022 7:10 pm
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

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

Posted: Fri Dec 02, 2022 11:08 am
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.

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

Posted: Thu Dec 08, 2022 1:57 pm
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!

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

Posted: Thu Dec 08, 2022 4:47 pm
by KLAB
Much Obliged.
K