Heart8reaker Posted 3 hours ago Posted 3 hours ago Hi This used to work in a previous version but it no longer works on Dedicated Servers. The helipads do spawn but it does not create Dynamic Spawn slots on the server as it does not appear on the list. This is crucial for our dynamic mission with 200+ helipads that need to be randomized and placing them in the ME is not the best solution. Thank you. local template = { units = {}, y = pos.y, x = pos.x, name = Name, hidden = false, visible = true, } for i, helipadPos in ipairs(HelipadPositions) do local padName = Name if i > 1 then padName = string.format("%s-%d", Name, i) end local unitTemplate = { unitId = nil, ["name"] = padName, ["category"] = "Heliports", ["shape_name"] = ShapeName, ["type"] = Type, ["heliport_callsign_id"] = CallSign or 1, ["heliport_frequency"] = Frequency or 127.5, ["heliport_modulation"] = Modulation or 0, ["y"] = helipadPos.y, ["x"] = helipadPos.x, ["heading"] = helipadPos.heading or 0, } if DynamicSpawns then unitTemplate.dynamicSpawn = true if AllowHotStart then unitTemplate.allowHotStart = true end end if DynamicCargo then unitTemplate.dynamicCargo = true end template.units[i] = unitTemplate end local helipadGroup = coalition.addGroup(Country, -1, template)
Recommended Posts