Skip to content

Commit

Permalink
add delay to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirk Main committed Jun 1, 2015
1 parent 028a12a commit 1e77abd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EVO/fn_surrender.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _unit removeWeapon handgunWeapon _unit;
_unit setCaptive true;
_grp = createGroup side _unit;
[_unit] joinSilent _grp;

_players = true;
_loop = true;
while {_loop} do {
_players = [_unit, 1000] call EVO_fnc_playersNearby;
Expand All @@ -32,4 +32,5 @@ while {_loop} do {
["PointsAdded",["You captured a POW.", 3]] call BIS_fnc_showNotification;
};
}], "BIS_fnc_spawn", true] call BIS_fnc_MP;

deleteVehicle _unit;
1 change: 1 addition & 0 deletions EVO/fn_wrapUp.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ while {_loop} do {

_veh = obj
if (vehicle _obj != _obj) then {_veh = vehicle _obj};
sleep 30;
deleteVehicle _obj;
deleteVehicle _veh;

0 comments on commit 1e77abd

Please sign in to comment.