Skip to content

OnExplosiveDud

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnExplosiveDud(  )
{
    Puts( "OnExplosiveDud works!" );
}

Location

  • DudTimedExplosive::Explode()
csharp
//---
	if (this.creatorEntity != null && this.creatorEntity.IsNpc)
	{
		base.Explode();
		return;
	}
	if (UnityEngine.Random.Range(0f, 1f) < this.dudChance && Interface.CallHook("OnExplosiveDud", this) == null)
	{
		this.BecomeDud();
		return;
	}
	base.Explode();
//---

Released under the MIT License.