mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
* player_onPause fixes Properly displays the right message now for why you can't abort. * Door Management/Plot Management isServer changes Removes isServer, these are run on the client only so no need for this. * dayz_server private tags Fix a few missing private tags and remove a _forEachIndex tag. Remove unused 1.0.5.1 dayz_server.pbo as it's no longer valid/needed
20 lines
489 B
Plaintext
20 lines
489 B
Plaintext
private ["_pos","_friends","_toRemove","_newList"];
|
|
|
|
_pos = _this select 0;
|
|
if (_pos < 0) exitWith {};
|
|
_friends = TheDoor getVariable ["doorfriends", []];
|
|
_toRemove = (_friends select _pos);
|
|
_newList = [];
|
|
{
|
|
if(_x select 0 != _toRemove select 0) then {
|
|
_newList set [count _newList, _x ];
|
|
};
|
|
} forEach _friends;
|
|
TheDoor setVariable ["doorfriends", _newList, true];
|
|
|
|
PVDZ_veh_Save = [TheDoor, "gear"];
|
|
publicVariableServer "PVDZ_veh_Save";
|
|
|
|
call DoorGetFriends;
|
|
call DoorNearbyHumans;
|