Skip to content

OnEntityReskinned

Usage

  • No return behavior

Example Autogenerated

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

Location

  • SprayCan::ChangeItemSkin(BaseEntity/RPCMessage msg)
csharp
//---
						current4.TargetEntity.transform.localRotation = current4.LocalRotation;
						current4.TargetEntity.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
					}
					baseEntity.SetSlots(slots);
				}
				Interface.CallHook("OnEntityReskinned", baseEntity, skin, msg.player);
				Pool.FreeUnmanaged<SprayCan.ChildPreserveInfo>(ref list);
			}
			base.ClientRPC<int, NetworkableId>(RpcTarget.NetworkGroup("Client_ReskinResult"), 1, baseEntity.net.ID);
		}
	}
//---

Released under the MIT License.