Add Radar Facility via LUA

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
tmoilanen
Posts: 111
Joined: Wed Oct 19, 2011 4:28 pm

Add Radar Facility via LUA

Post by tmoilanen »

Hello - I'm trying to add radar facilities to a scenario via LUA, and when I run the command below I get the error "ScenEdit_AddUnit() : Unable to create the new unit"

I'm not sure what I'm missing...any help would be appreciated.

ScenEdit_AddUnit({type = 'Facility', unitname = 'RRH Benbecula', dbid = 1349, side = "NATO", long = '57.6', lat = '-7.333'})
tmoilanen
Posts: 111
Joined: Wed Oct 19, 2011 4:28 pm

RE: Add Radar Facility via LUA

Post by tmoilanen »

Disregard...I had my latitude and longitude flipped and was trying to put a land facility in the middle of the Indian Ocean
Post Reply

Return to “Lua Legion”