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

◆ GetPlayerRootForTeleporting()

static Object DeveloperTeleport::GetPlayerRootForTeleporting ( PlayerBase player)
inlinestaticprotected

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

86 {
87 Object playerRoot = player;
88
89 HumanCommandVehicle hcv = player.GetCommand_Vehicle();
90 if (hcv)
91 {
92 playerRoot = hcv.GetTransport();
93 }
94
95 HumanCommandUnconscious hcu = player.GetCommand_Unconscious();
96 if (hcu)
97 {
98 Class.CastTo(playerRoot, player.GetParent());
99
100 if (playerRoot != player.GetTransportCache())
101 {
102 playerRoot = null;
103 }
104 }
105
106 if (playerRoot == null)
107 {
108 playerRoot = player;
109 }
110
111 return playerRoot;
112 }
proto native Transport GetTransport()
class LOD Object
void HumanCommandUnconscious()
Определения human.c:638

Перекрестные ссылки Class::CastTo() и HumanCommandVehicle::GetTransport().

Используется в SetPlayerDirection() и SetPlayerPosition().