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

◆ OnPlacementComplete()

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

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

131 {
132 super.OnPlacementComplete( player, position, orientation );
133
134 PlayerBase pb = PlayerBase.Cast( player );
135
136 if ( GetGame().IsServer() )
137 {
138 if ( !m_ClutterCutter )
139 {
140 m_ClutterCutter = GetGame().CreateObjectEx( "LargeTentClutterCutter", pb.GetLocalProjectionPosition(), ECE_PLACE_ON_SURFACE );
141 m_ClutterCutter.SetOrientation( pb.GetLocalProjectionOrientation() );
142 }
143 }
144 }
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.
Определения PlayerBaseClient.c:2
proto native CGame GetGame()

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