Skip to content

OnFireworkDesignChange

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnFireworkDesignChange( PatternFirework instance, Design design, BasePlayer player )
{
    Puts( "OnFireworkDesignChange works!" );
}

Location

  • PatternFirework::ServerSetFireworkDesign(BaseEntity/RPCMessage rpc)
csharp
//---
	if (!this.PlayerCanModify(rpc.player))
	{
		return;
	}
	ProtoBuf.PatternFirework.Design design = ProtoBuf.PatternFirework.Design.Deserialize(rpc.read);
	if (Interface.CallHook("OnFireworkDesignChange", this, design, rpc.player) != null)
	{
		return;
	}
	if (((design != null) ? design.stars : null) != null)
	{
//---

Released under the MIT License.