Fredrick 0 Posted March 14, 2007 I have a mission where it respawn vehicles at the base, one problem however is that a few times a pilot manages to crash at the base, so the mission ends up in a loop of spawning, then exploding. Is there a way where i can make a circle with a trigger, then call a delete script to delete any vehicle that is destroyed within that circle at the base?. Apreciate any sugestions. Share this post Link to post Share on other sites
HulkingUnicorn 0 Posted March 15, 2007 You can try something like this: Put a trigger with civilian present (empty vehicles are of side civilian) on repeat. Maybe put countdown on 1 or something. On activation: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> {if !(_x isKindOf "SoldierWB") then {if ((getDamage _x) > 0.8) then {deleteVehicle _x;};};} forEach units thisList However, the civilian present may not be triggered by the empty vehicles, so try anybody present instead and this in activation field: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> {if ( !(_x isKindOf "SoldierWB") && (side _x == civilian) ) then {if ((getDamage _x) > 0.8) then {deleteVehicle _x;};};} forEach units thisList Good luck! Share this post Link to post Share on other sites
mandoble 1 Posted March 15, 2007 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _centerpos = _this select 0 _radious = _this select 1 #check _list = nearestObjects [_centerpos, ["Air","LandVehicle", "Ship"], _radious] {if (damage _x > 0.9) then {deleteVehicle _x}} forEach _list ~1 goto "check" Share this post Link to post Share on other sites