Arkon, this is the script you are trying to terminate.
ghost_parms = "";
_maxspd = _this select 0;
_mindist = _this select 1;
_maxdist = _this select 2;
_mindelay = _this select 3;
_maxdelay = _this select 4;
[_maxspd, _mindist, _maxdist, _mindelay, _maxdelay]execVM"mando_ghosts\mando_ghosts.sqf";
while {true} do
{
waitUntil {ghost_parms != ""};
(call compile ghost_parms) execVM "mando_ghosts\draw_ghost.sqf";
ghost_parms = "";
};
When you terminate it, the while will stop, but any running instances of draw_ghost.sqf will keep running.