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

◆ SetupTrapPlayer()

void SetupTrapPlayer ( PlayerBase player,
bool set_position = true )
protected

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

388 {
389 if (g_Game.IsServer())
390 {
391 if (set_position)
392 {
393 player.LocalDropEntity(this);
394
395 vector trapPos = player.GetDirection() * 1.5;
396 trapPos[1] = 0;
397 SetPosition(player.GetPosition() + trapPos);
398 }
399
400 if (m_NeedActivation == false)
401 SetActive();
402 }
403 }
DayZGame g_Game
Определения DayZGame.c:4074
void SetActive()
Определения TrapBase.c:413
bool m_NeedActivation
Определения TrapBase.c:18
Определения EnConvert.c:119
proto native void SetPosition(vector position)
Set the world position of the Effect.
Определения Effect.c:463

Перекрестные ссылки g_Game, m_NeedActivation, SetActive() и SetPosition().

Используется в ItemBase::OnPlacementComplete(), ItemBase::SetupTrap() и SetupTrap().