Jump to content

Dynamic spawn of static objects : 2 problems


sunski34

Recommended Posts

Hi,

 

I tested that small basic code :

 

local zoneTest = trigger.misc.getZone("zone")
       
coalition.addStaticObject(country.id.USA, {
["name"] = "Montest",
["groupId"] = 100,
["dead"] = true,
["canCargo"] = false,
["category"] = "Unarmed",
["livery_id"] = "GRC_autumn",
["type"] = "Stinger comm",
["unitId"] = 100,
["rate"] = 1,
["y"] = zoneTest.point.z,
["x"] = zoneTest.point.x,
["heading"] = 0,
})

 

I have a stinger comm man at the position but he isn't dead (its 3D object when mission starts). Same for other static object types, in DCS 1.5.6.3930 and DCS open alpha last version too.

 

Another problem on event S_EVENT_BIRTH with static objects. In that particular case of Unarmed category, even.initiator:getName always returns "static", not the good name.

 

With Cargos or fortifications it's ok, name is good.


Edited by sunski34
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...