Skip to content

OnTimedExplosiveExplode

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnTimedExplosiveExplode( TimedExplosive instance, Vector3 explosionFxPos )
{
    Puts( "OnTimedExplosiveExplode works!" );
}

Location

  • TimedExplosive::Explode(UnityEngine.Vector3 explosionFxPos)
csharp
//---
	{
		Effect.server.Run(this.watersurfaceExplosionEffect.resourcePath, explosionFxPos.WithY(waterInfo.surfaceLevel), this.GetExplosionNormal(), null, true, null);
	}
	if (this.damageTypes.Count > 0)
	{
		if (Interface.CallHook("OnTimedExplosiveExplode", this, explosionFxPos) != null)
		{
			return;
		}
		Vector3 vector2 = this.ExplosionCenter();
		if (this.onlyDamageParent)
//---

Released under the MIT License.