11 RegisterNetSyncVariableBool(
"m_Openable.m_IsOpened");
16 if (!super.CanReceiveItemIntoCargo(item))
21 if (!
GetGame().IsDedicatedServer())
43 return m_Openable.IsOpened();
58 entity.GetInventory().CreateInInventory(
"Chemlight_Green");
64 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
68 MiscGameplayFunctions.DropAllItemsInInventoryInBounds(
this,
m_HalfExtents);
74class GiftBox_Small
extends GiftBox_Base {}
75class GiftBox_Medium
extends GiftBox_Base {}
76class GiftBox_Large
extends GiftBox_Base {}
void AddAction(typename actionName)
Container_Base m_HalfExtents
Super root of all classes in Enforce script.
override void OnDebugSpawn()
override bool CanReceiveItemIntoCargo(EntityAI item)
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
protected vector m_HalfExtents
protected ref OpenableBehaviour m_Openable
override void SetActions()
script counterpart to engine's class Inventory
static int GetInventoryCheckContext()
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.