Skip to content

OnEntityReskin

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnEntityReskin( BaseEntity baseEntity, Skin skin, BasePlayer player )
{
    Puts( "OnEntityReskin works!" );
}

Location

  • SprayCan::ChangeItemSkin(BaseEntity/RPCMessage msg)
csharp
//---
				return;
			}
			ItemDefinition itemDefinition2 = null;
			ulong skinID = ItemDefinition.FindSkin((itemDefinition.isRedirectOf != null) ? itemDefinition.isRedirectOf.itemid : itemDefinition.itemid, <>c__DisplayClass37_.targetSkin);
			ItemSkinDirectory.Skin skin = itemDefinition.skins.FirstOrDefault((ItemSkinDirectory.Skin x) => x.id == <>c__DisplayClass37_.targetSkin);
			if (Interface.CallHook("OnEntityReskin", baseEntity, skin, msg.player) != null)
			{
				return;
			}
			if (skin.invItem != null)
			{
//---

Released under the MIT License.