Hi, I'm trying to figure out how to use the addStaticObject function. The documentation says that "The table has the same format static objects have in a mission file." but I don't understand what exactly that means.
Here is my current non working sample code. The trigger message is shown but the container does not appear:
static = {
["units"] =
{
[1] =
{
["shape_name"] = "konteiner_red1",
["type"] = "Container red 1",
["unitId"] = 17,
["rate"] = 100,
["y"] = 682340,
["x"] = -85215.428571426,
["name"] = "Alpha",
["category"] = "Fortifications",
["heading"] = 0,
}, -- end of [1]
}, -- end of ["units"]
} -- end of static
trigger.action.outText("debug", 5)
coalition.addStaticObject(0, static)