Page 1 of 1

Add_Mission question?

Posted: Wed Mar 22, 2023 8:50 pm
by Zyph
Hello again,

Can't get this to work, I have 4 helicopters on a aircraftcarrier, when i run this, two helicopters take off even if i put the flightsize to 1. Speed and altitude is wrong also OneThirdRule is still checked even thoug i put it as false. Help!

local missionReferencePoints={'R45-02'}
local mission = ScenEdit_AddMission ('USA', 'Heli SAR', 'Support',{zone= missionReferencePoints, StationThrottleAircraft=10, StationAltitudeAircraft=('1000 ft'), FlightSize=1, OneThirdRule=false})

Re: Add_Mission question?

Posted: Thu Mar 23, 2023 12:05 pm
by blu3s
You need to use SetMission to add the parameters.

From the lua docs:
Once the core mission is added, the mission can be adjusted through a wrapper or ScenEdit_SetMission

Re: Add_Mission question?

Posted: Thu Mar 23, 2023 12:28 pm
by Zyph
blu3s wrote: Thu Mar 23, 2023 12:05 pm You need to use SetMission to add the parameters.

From the lua docs:
Once the core mission is added, the mission can be adjusted through a wrapper or ScenEdit_SetMission
Aaaahhh Thank you!!!