Skip to content

OnExplosiveFuseSet

Usage

  • Return TYPE to prevent default behavior

Example Autogenerated

csharp
private void OnExplosiveFuseSet( TimedExplosive instance, float fuseLength )
{
    Puts( "OnExplosiveFuseSet works!" );
}

Location

  • TimedExplosive::SetFuse(float fuseLength)
csharp
public virtual void SetFuse(float fuseLength)
{
	if (base.isServer)
	{
		object returnvar = Interface.CallHook("OnExplosiveFuseSet", this, fuseLength);
		if (returnvar is float)
		{
			fuseLength = (float)returnvar;
		}
		base.Invoke(new Action(this.Explode), fuseLength);
//---

Released under the MIT License.