Fix errors when removing traps

Vanilla commit:

b558351a06
This commit is contained in:
ebaydayz
2016-11-06 13:05:46 -05:00
parent 88691fe9d1
commit de46a173dc
2 changed files with 18 additions and 1 deletions

View File

@@ -1 +1,11 @@
[nil,nil,nil,_this select 0] call compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\remove.sqf"
private ["_obj","_objectID","_objectUID"];
_obj = _this select 0;
_objectID = _obj getVariable ["ObjectID","0"];
_objectUID = _obj getVariable ["ObjectUID","0"];
if (isServer) then {
[_objectID,_objectUID,"__SERVER__"] call server_deleteObj;
} else {
[nil,nil,nil,_obj] execVM "\z\addons\dayz_code\actions\remove.sqf";
};