Skip to content

OnFireworkExhausted

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnFireworkExhausted( BaseFirework instance )
{
    Puts( "OnFireworkExhausted works!" );
}

Location

  • BaseFirework::OnExhausted()
csharp
//---
	base.SetFlag(BaseEntity.Flags.Reserved8, true, false, false);
	base.SetFlag(BaseEntity.Flags.OnFire, false, false, false);
	base.SetFlag(BaseEntity.Flags.On, false, false, false);
	base.EnableGlobalBroadcast(false);
	base.SendNetworkUpdate_Flags();
	Interface.CallHook("OnFireworkExhausted", this);
	base.Invoke(new Action(this.Cleanup), this.corpseDuration);
	BaseFirework._activeFireworks.Remove(this);
}

Released under the MIT License.