DayZ 1.27
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 строка 1726

1727 {
1728 vector playerPos = player.GetPosition();
1729 if (playerPos != safePos)
1730 {
1731 player.SetPosition(safePos);
1732 GetGame().RPCSingleParam(player, ERPCs.RPC_WARNING_TELEPORT, null, true, player.GetIdentity());
1733
1734 return true;
1735 }
1736
1737 return false;
1738 }
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().