Scripting woes
Posted: Sun Feb 22, 2026 12:34 pm
Hi all,
I'm currently trying to elaborate the scripting for the "Collision Course" scenario,
but I don't get the "unload" command to work.
Does it refer to the carrier or to the passenger?
I have yet to find an existing Lua script which uses "unload".
------------------------------
-- _APCS_73 -- APCs, 3rd pltn Recon Company
do local units = _APCS_73
move_way_point (units, {"15,9","19,13"})
if at (units, "19,13") then
unload (units, "19,13", 100)
end
if are_unloaded (units) then
withdraw (units, "19,12")
end
end
-----------------------------------
I'm currently trying to elaborate the scripting for the "Collision Course" scenario,
but I don't get the "unload" command to work.
Does it refer to the carrier or to the passenger?
I have yet to find an existing Lua script which uses "unload".
------------------------------
-- _APCS_73 -- APCs, 3rd pltn Recon Company
do local units = _APCS_73
move_way_point (units, {"15,9","19,13"})
if at (units, "19,13") then
unload (units, "19,13", 100)
end
if are_unloaded (units) then
withdraw (units, "19,12")
end
end
-----------------------------------