Page 2 of 2

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Sun Oct 15, 2017 12:48 pm
by angster
Updated to include time limit for pilot pickup
1.) -50 points if pilot is lost
2.) +50 points for pilot pickup
3.) pilot time limit is random

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Tue Oct 17, 2017 2:07 pm
by Mini_Von
Angster,

I tested out the scenario with the new "Lost Pilot" functionality. I really think you did an awesome job. This is a great addition to the sim. Thank you for sharing your work.

Rob

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Fri Oct 20, 2017 3:05 pm
by angster
Thanks Von, gonna get a guide out sometime next week.

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Sun Jan 21, 2018 10:15 pm
by Gunner98
Angster

This is a great bit of scripting - well done.

I'm going to try and adapt it into one of my scenarios - Hot Tamale's if that's OK with you?

Is there any limit to the number of Pilots needing rescue?

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Wed Jan 24, 2018 7:41 pm
by angster
Hi Gunner! Feel free to use or update the SAR scripts. If you run into any issues, let me know. Currently, there’s no limit on pilot rescue. Cheers

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Thu Jan 25, 2018 10:24 am
by Gunner98
Thanks angster

Have got it to work partially.

The downed pilots appear as advertised, and I have reduced the VP count, but I cannot seem to get the rescue triggered.

Also is there a way of reducing the probability of creating a downed pilot from 100% to about 60%?

Thanks, this code is really solving a big problem. Thanks

B

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Fri Jan 26, 2018 12:03 am
by angster
Hi Gunner! This is based on the attachment from Post 21:

1.) To setup probability of pilot ejecting => Go to event and edit "Event - Aircraft Destroyed And Create Pilot" and set probability to 60%
2.) To get rescue pilot triggered, you will need to copy "Event - Start SAR Target Pickup" and all the triggers and actions. Make sure you add a side named "Neutral" to hide all the reference points

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Fri Jan 26, 2018 1:45 pm
by Gunner98
Thanks I'll give that a try tonight.

Cheers

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Mon Jan 29, 2018 9:39 pm
by Gunner98
angster

Got the probability working, should have spotted that one.
The event when a pilot is lost works:
1:00:00 PM - 1:00:00 PM - Event: 'Event - Cancel Pilot ef764738-cd1e-4248-a671-402e6e6ff355' has been fired.

Still haveing an issue with the pilot pickup however. Here is the Lua log.

I now have a Neutral side, am using the upload from post 21 and have the event loaded.

Any ideas?

I can PM you the scenario if you like?

B

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Tue Jan 30, 2018 1:29 am
by angster
Hi Gunner, PM me the scenario and I'll take a look.

RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13)

Posted: Sat Jun 30, 2018 12:12 am
by hasler
I know this is a little old but I am working with the SAR code right now. I would love to have the ability to use land and sea units to pick up pilots if they land in the area. I figured this line of code ties rescue to Air Units when it creates 15 sec remain in area trigger by this line:

-- Create Trigger With Reference Points
local addedTrigger = ScenEdit_SetTrigger({mode="add",type='UnitRemainsInArea',name=downedPilot.guid, targetfilter={TargetType = '1' , TargetSide=triggerUnit.side},area={referencePointOne.name,referencePointTwo.name,referencePointThree.name,referencePointFour.name},TD=15})

TargetType=1 is aircraft, 2=ships, 3=subs, 4=ground units. I broke the code when I removed target type or set it to 0, and I have not figured out how to create two triggers for the same event in the code. Is what I am trying to do even possible in this scripts framework? Any insight would be appreciated.