Arma 3
Ares
Placed structures dissapear when spawning units and using ARES_fnc_GarrisonNearest in a script
Hi man, great job.
Found an issue when trying to use scripting to spawn and garrison units on a placed structure (a Military Cargo Tower, to be precise)

The script does what is intended (create the units and spawn them in the marker area) but as soon it runs on the "garrison" line of code, the tower disappears. Any suggestion?

Script in spoiler


Group1 = [getmarkerpos "mark", east, ["EMP_Recon_Squad_Lead", "EMP_Recon_Team_Lead", "EMP_Recon_Paramedic", "EMP_Recon_Marksman", "EMP_Recon_Grenadier", "EMP_Recon_Demo_Specialist", "EMP_Recon_LAT","EMP_Recon_LMG"]] call BIS_fnc_SpawnGroup; building = nearestBuilding (getmarkerpos "mark"); [building, Group1] call ARES_fnc_GarrisonNearest;