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

◆ Unfold()

void Inventory_Base::Unfold ( )
inlineprotected

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

100 {
101 this.HideSelection( "inventory" );
102 this.ShowSelection( "placing" );
103 this.HideSelection( "filled" );
104
107
108 if ( GetGame().IsServer() )
109 {
110 SetAllowDamage(true);
111 Synchronize();
112 float unfold_damage = ( GetMaxHealth( "", "" ) / 100 ) * PERCENTUAL_DAMAGE;
113 DecreaseHealth( "", "", unfold_damage );
114 }
115 }
void SetState(int state)
Определения HescoBox.c:56
static const int PERCENTUAL_DAMAGE
Определения HescoBox.c:6
static const int UNFOLDED
Определения HescoBox.c:4
void Synchronize()
Определения HescoBox.c:34
override void RefreshPhysics()
Определения HescoBox.c:124
proto native CGame GetGame()

Перекрестные ссылки GetGame(), PERCENTUAL_DAMAGE, RefreshPhysics(), SetState(), Synchronize() и UNFOLDED.

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