Jump to content

changing model for cargo's


IanCassels

Recommended Posts

Can someone help me out with changing the default cargo model with for instance a hummer . I tried to point out to an other edm file but no luck. Changing the type will result that it wont show up in de cargo menu.

 

local _trgZone = trigger.misc.getZone("hummer_pickup_zone")

local newCargo = {

["groupId"] = math.random(999, 99999),

["category"] = "Cargos", -- default cargo in order to activate menu

["type"] = "Cargo1", -- default cargo in order to activate menu

["unitId"] = math.random(999, 99999),

["x"] = _trgZone.point.x,

["y"] = _trgZone.point.z,

["canCargo"] = true,

["mass"] = 700,

["heading"] = 0,

["name"] = "the hummer",

["dead"] = false,

["country"] = "USA",

["shape_name"] = "hummer_p_1", -- i guess the edm file

}

coalition.addStaticObject(country.id.USA, newCargo)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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