Skip to content

OnExplosiveFuseSet ​

Usage ​

  • Return type float to prevent default behavior

Example Autogenerated ​

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

Location ​

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

Released under the MIT License.