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

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


hasler -> RE: Dynamic Pilot Ejection And SAR Rescue (Must have v1.13) (6/30/2018 3:12:26 AM)

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.




Page: <<   < prev  1 [2]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
3.96875