Page 1 of 1

LUA Syntax Help

Posted: Sun Apr 02, 2017 7:24 pm
by bearhunter007
When I run the following command in the script console I get and error. The error says expected ")" before the equals sign.

local mission = ScenEdit_AddMission('Merchant','Merchant05A','Support',zone={"CR-02","CR-03","CR-04"})

Any suggestions?

Thanks

RE: LUA Syntax Help

Posted: Mon Apr 03, 2017 7:59 am
by michaelm75au
IIRC,the mission specific attributes are in a table:
local mission = ScenEdit_AddMission('Merchant','Merchant05A','Support',{zone={"CR-02","CR-03","CR-04"}})