OnExplosiveDud
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnExplosiveDud( DudTimedExplosive instance )
{
Puts( "OnExplosiveDud works!" );
return null;
}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
{
//---