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

◆ SetupTrapPlayer()

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

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

379 {
380 if (g_Game.IsServer())
381 {
382 if (set_position)
383 {
384 player.LocalDropEntity(this);
385
386 vector trapPos = player.GetDirection() * 1.5;
387 trapPos[1] = 0;
388 SetPosition(player.GetPosition() + trapPos);
389 }
390
391 if (m_NeedActivation == false)
392 SetActive();
393 }
394 }
DayZGame g_Game
Определения DayZGame.c:3942
void SetActive()
Определения TrapBase.c:404
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().