mirror of
https://github.com/iTracerFacer/DCS_MissionDev.git
synced 2025-12-03 04:14:46 +00:00
9 lines
348 B
Lua
9 lines
348 B
Lua
do
|
|
local statObj = coalition.getStaticObjects(2) --1 Red coalition 2 blue coalition
|
|
for i, static in pairs(statObj) do
|
|
local staticName = static:getName()
|
|
if string.match(staticName, "Carrierstatics.*") then -- Searches for anything with a name starting with Carrierstatics
|
|
static:destroy() -- removes the object
|
|
end
|
|
end
|
|
end |