DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ TeleportPlayerToSafeLocation3D()

static bool TeleportPlayerToSafeLocation3D ( notnull PlayerBase player,
vector safePos )
staticprotected

'stupider' teleport method, does not touch flag management. Applies Y from the position as well!

См. определение в файле MiscGameplayFunctions.c строка 1733

1734 {
1735 vector playerPos = player.GetPosition();
1736 if (playerPos != safePos)
1737 {
1738 player.SetPosition(safePos);
1739 GetGame().RPCSingleParam(player, ERPCs.RPC_WARNING_TELEPORT, null, true, player.GetIdentity());
1740
1741 return true;
1742 }
1743
1744 return false;
1745 }
ERPCs
Определения ERPCs.c:2
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
Определения EnConvert.c:106
proto native CGame GetGame()

Перекрестные ссылки GetGame() и CGame::RPCSingleParam().