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

◆ OnFreezeStateChangeServer()

override void OnFreezeStateChangeServer ( )
private

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

74 {
75 super.OnFreezeStateChangeServer();
76
77 //soak CARGO items on unfreeze
78 CargoBase cargo;
79 if (!GetIsFrozen() && GetLiquidType() != 0 && Class.CastTo(cargo,GetInventory().GetCargo()))
80 {
81 int count = cargo.GetItemCount();
82 for (int i = 0; i < count; ++i)
83 {
84 MiscGameplayFunctions.SoakItemInsideParentContainingLiquidAboveThreshold(ItemBase.Cast(cargo.GetItem(i)), this);
85 }
86 }
87 }
override int GetLiquidType()
Определения ItemBase.c:8547
proto native int GetItemCount()
proto native EntityAI GetItem(int index)
represents base for cargo storage for entities
Определения Cargo.c:7
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения InventoryItem.c:731
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo(), CargoBase::GetItem(), CargoBase::GetItemCount() и GetLiquidType().

Используется в Entity::SetFrozen().