Automatically add player to door management

This commit is contained in:
icomrade
2016-07-21 19:34:42 -04:00
parent 75a9ca6848
commit 8d7b99e746
3 changed files with 21 additions and 0 deletions

View File

@@ -129,10 +129,17 @@ if ((count _upgrade) > 0) then {
if (_ownerID == "0") then { _ownerID = [player] call FNC_GetPlayerUID; }; //APFL is on but UID is 0 so we will claim it to record the ownership.
_object setVariable ["ownerPUID",_ownerID,true];
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_ownerID,_vector],_classname,_obj,player];
if (_lockable == 3) then {
_object setVariable ["doorfriends", [[([player] call FNC_GetPlayerUID),(name player)]], true];
PVDZ_veh_Save = [_object,"gear"];
};
} else {
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_vector],_classname,_obj,player];
};
publicVariableServer "PVDZE_obj_Swap";
if (!isNil "PVDZ_veh_Save") then {
publicVariableServer "PVDZ_veh_Save";
};
player reveal _object;