LUA Syntax Help

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
bearhunter007
Posts: 23
Joined: Sat Mar 11, 2017 2:51 am

LUA Syntax Help

Post 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
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: LUA Syntax Help

Post 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"}})
Michael
Post Reply

Return to “Mods and Scenarios”