Skip to content

OnExplosiveDud ​

Usage ​

  • No return behavior

Example Autogenerated ​

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

Location ​

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

Released under the MIT License.