hasler
Posts: 39
Joined: 7/31/2017 Status: offline
|
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.
|