Add_Mission question?

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
Zyph
Posts: 40
Joined: Mon Sep 12, 2022 6:58 pm

Add_Mission question?

Post 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})
User avatar
blu3s
Posts: 1121
Joined: Fri Jul 08, 2022 9:45 am

Re: Add_Mission question?

Post 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
Zyph
Posts: 40
Joined: Mon Sep 12, 2022 6:58 pm

Re: Add_Mission question?

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

Return to “Lua Legion”