Don't need a extra function because its just used in maintainArea.sqf

This commit is contained in:
Skaronator
2014-02-01 22:52:16 +01:00
parent e2b66dad28
commit eb936a78d9
2 changed files with 11 additions and 15 deletions

View File

@@ -18,12 +18,12 @@ if (_option == 1) then {
if (_objectUID != "0") then {
_x setDamage 0;
_key = format["CHILD:397:%1:", _objectUID]; // use UID if not "0" and ID is "0"
_key call server_maintainObj;
_data = "HiveExt" callExtension _key;
};
} else {
_x setDamage 0;
_key = format["CHILD:396:%1:", _objectID]; //Use ID instead of UID because ID is shorter
_key call server_maintainObj;
_data = "HiveExt" callExtension _key;
};
};
} forEach _objects;
@@ -38,12 +38,12 @@ if (_option == 2) then {
if (_objectUID != "0") then {
_targetObj setDamage 0;
_key = format["CHILD:397:%1:", _objectUID]; // use UID if not "0" and ID is "0"
_key call server_maintainObj;
_data = "HiveExt" callExtension _key;
};
} else {
_targetObj setDamage 0;
_key = format["CHILD:396:%1:", _objectID]; //Use ID instead of UID because ID is shorter
_key call server_maintainObj;
_data = "HiveExt" callExtension _key;
};
};