mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update EPOCH_server_teleportPlayer.sqf
typo _plyr to _player
This commit is contained in:
parent
bd183c7d2e
commit
801cab86da
@ -5,9 +5,9 @@ _teleporter = _this select 1;
|
|||||||
|
|
||||||
if !([_player, _this select 2] call EPOCH_server_getPToken) exitWith{};
|
if !([_player, _this select 2] call EPOCH_server_getPToken) exitWith{};
|
||||||
if (isNull _teleporter) exitWith{};
|
if (isNull _teleporter) exitWith{};
|
||||||
if (_plyr distance _teleporter > 20) exitWith{};
|
if (_player distance _teleporter > 20) exitWith{};
|
||||||
|
|
||||||
_tp = _teleporter getVariable["ParentBuilding", []];
|
_tp = _teleporter getVariable["ParentBuilding", []];
|
||||||
if !(_tp isEqualTo []) then {
|
if !(_tp isEqualTo []) then {
|
||||||
_player setPosATL _tp;
|
_player setPosATL _tp;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user