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

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

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

Post 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
Attachments
DynamicPi..andSAR.zip
(34.43 KiB) Downloaded 94 times
User avatar
Mini_Von
Posts: 141
Joined: Mon Dec 16, 2013 11:14 pm

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

Post 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
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

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

Post by angster »

Thanks Von, gonna get a guide out sometime next week.
User avatar
Gunner98
Posts: 6001
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

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

Post 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?
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

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

Post 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
User avatar
Gunner98
Posts: 6001
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

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

Post 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
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

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

Post 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
User avatar
Gunner98
Posts: 6001
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

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

Post by Gunner98 »

Thanks I'll give that a try tonight.

Cheers
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
User avatar
Gunner98
Posts: 6001
Joined: Fri Apr 29, 2005 12:49 am
Location: The Great White North!
Contact:

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

Post 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
Attachments
LuaHistory..180129.txt
(342 Bytes) Downloaded 26 times
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
angster
Posts: 89
Joined: Mon Oct 12, 2015 10:25 am

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

Post by angster »

Hi Gunner, PM me the scenario and I'll take a look.
hasler
Posts: 39
Joined: Mon Jul 31, 2017 8:28 pm

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

Post 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.
Post Reply

Return to “Lua Legion”