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

◆ OnPlacementComplete() [4/4]

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

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

17 {
18 super.OnPlacementComplete( player, position, orientation );
19
20 if ( GetGame().IsServer() )
21 {
22 //Create watchtower
23 Watchtower watchtower = Watchtower.Cast( GetGame().CreateObjectEx( "Watchtower", GetPosition(), ECE_PLACE_ON_SURFACE ) );
24 watchtower.SetPosition( position );
25 watchtower.SetOrientation( orientation );
26
27 //make the kit invisible, so it can be destroyed from deploy UA when action ends
28 HideAllSelections();
29 }
30 }
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame() и GetPosition.