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

◆ SetupTrapPlayer()

void ItemBase::SetupTrapPlayer ( PlayerBase player,
bool set_position = true )
inlineprotected

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

226 {
227 if ( g_Game.IsServer() )
228 {
229 if ( set_position )
230 {
231 vector trapPos = player.GetPosition() + ( player.GetDirection() * 0.5 );
232 trapPos[1] = g_Game.SurfaceRoadY( trapPos[0], trapPos[2] );
233 SetPosition( trapPos );
234 }
235
236 SetDeployed( true );
237 }
238 }
DayZGame g_Game
Определения DayZGame.c:3942
void SetDeployed(bool newState)
Определения TrapSpawnBase.c:174
proto native void SetPosition(vector position)
Set the world position of the Effect.
Определения Effect.c:463

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

Используется в OnPlacementComplete().