OnItemSkinChange
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnItemSkinChange( int num, Item slot, RepairBench instance, BasePlayer player )
{
Puts( "OnItemSkinChange works!" );
}
Location
- RepairBench::ChangeSkin(BaseEntity/RPCMessage msg)
csharp
//---
Item slot = base.inventory.GetSlot(0);
if (slot == null)
{
return;
}
if (Interface.CallHook("OnItemSkinChange", num, slot, this, player) != null)
{
return;
}
if (isValid && slot.uid != right)
{
//---