Jump to content

IanCassels

Members
  • Posts

    33
  • Joined

  • Last visited

Posts posted by IanCassels

  1. 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)

  2. Hi, looking for the same solution and analysed the output in the mission

     

    i used

     

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

    local newCargo = {

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

    ["category"] = "Cargos",

    ["type"] = "Cargo1",

    ["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",

    }

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

     

    with no luck. The shape_name points out to the .edm file so i changed it to another one in this case "hummer_p_1"

     

    ian

  3. hi all,

     

    digging in the script and love it ..thx for that ....i would like to broadcast on the ark-ud.

     

    will this part line work if the function has values ?

     

    csar.freeVHFFrequencies = {114.167, 114.333, 114.584 ,121.5, 123.1, 124.1}

     

    these values should override the random generated beacons right ?

     

    Also is it possible to random place downed pilots in a trigger zone like 6 and when a pilot is rescued the trigger will spawn a new pilot ?

     

    ian

  4. when i activate an unit after deactivating the unit is not visible..like if csar unit is picked up its deactivated so not visible and when dropped of at base its activated again..but that doesn't work. i also tried setting 2 command tasks to the unit visible on and off ...triggering that is also nt working.

  5. I have 15 client choppers that can join the mission . Now if 1 of the choppers enters a trigger zone i want to message that specific chopper. Or do i need to make 15 separate triggers for each chopper.

     

    Or is this also done with scripting that analyses which chopper is flying over that trigger zone...

×
×
  • Create New...