3 override void OnWasAttached(
EntityAI parent,
int slot_id )
5 super.OnWasAttached( parent, slot_id );
8 if (
Class.CastTo(parent_item,parent) )
10 parent_item.AddLightSourceItem(
this);
16 super.OnWasDetached( parent, slot_id );
19 if (
Class.CastTo(parent_item,parent) )
21 parent_item.RemoveLightSourceItem();
27 super.EEItemLocationChanged(oldLoc, newLoc);
31 GetLight().UpdateMode();
Super root of all classes in Enforce script.
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override void OnWasDetached(EntityAI parent, int slot_id)