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

◆ SetupTrapPlayer()

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

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

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

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

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