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

◆ OnPlacementComplete() [2/2]

override void TentBase::OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate

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

61 {
62 super.OnPlacementComplete( player, position, orientation );
63
64 PlayerBase pb = PlayerBase.Cast( player );
65
66 if ( GetGame().IsServer() )
67 {
68 if ( !m_ClutterCutter )
69 {
70 m_ClutterCutter = GetGame().CreateObjectEx( "LargeTentClutterCutter", pb.GetLocalProjectionPosition(), ECE_PLACE_ON_SURFACE );
71 m_ClutterCutter.SetOrientation( pb.GetLocalProjectionOrientation() );
72 }
73 }
74 }
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
Object m_ClutterCutter
Определения FireplaceBase.c:206
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
proto native CGame GetGame()

Перекрестные ссылки CGame::CreateObjectEx(), ECE_PLACE_ON_SURFACE, GetGame() и m_ClutterCutter.