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

◆ OnPlacementComplete()

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

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

89 {
90 super.OnPlacementComplete( player, position, orientation );
91
92 PlayerBase player_base = PlayerBase.Cast( player );
93 //vector pos = player_base.GetLocalProjectionPosition();
94 //vector ori = player_base.GetLocalProjectionOrientation();
95
96 if ( GetGame().IsServer() )
97 {
98 // To properly move the clutter cutter from spawn position, it must be deleted and created again.
100 {
102 m_ClutterCutter = NULL;
103 }
104
105 if (!m_ClutterCutter)
106 {
108 m_ClutterCutter.SetOrientation( orientation );
109 }
110 }
111 }
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
proto native void ObjectDelete(Object obj)
Object m_ClutterCutter
Определения GardenPlot.c:3
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

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