OnSprayCreate
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnSprayCreate( SprayCan instance, Vector3 vector, Quaternion quaternion )
{
Puts( "OnSprayCreate works!" );
}
Location
- SprayCan::CreateSpray(BaseEntity/RPCMessage msg)
csharp
//---
if (num != 0 && !flag && !msg.player.blueprints.CheckSkinOwnership(num, msg.player.userID))
{
Debug.Log(string.Format("SprayCan.ChangeItemSkin player does not have item :{0}:", num));
return;
}
if (Interface.CallHook("OnSprayCreate", this, vector, quaternion) != null)
{
return;
}
ulong skinID = ItemDefinition.FindSkin(this.SprayDecalItem.itemid, num);
BaseEntity expr_169 = GameManager.server.CreateEntity(this.SprayDecalEntityRef.resourcePath, vector, quaternion, true);
//---