OnFireBallDamage
Usage
- No return behavior
Example Autogenerated
csharp
private void OnFireBallDamage( FireBall instance, BaseCombatEntity current, HitInfo hitInfo )
{
Puts( "OnFireBallDamage works!" );
}
Location
- FireBall::DoRadialDamage()
csharp
//---
Effect.server.Run("assets/bundled/prefabs/fx/impacts/additive/fire.prefab", current, 0u, new Vector3(0f, 1f, 0f), Vector3.up, null, false, null);
}
hitInfo.PointEnd = current.transform.position;
hitInfo.HitPositionWorld = current.transform.position;
hitInfo.damageTypes.Set(Rust.DamageType.Heat, this.damagePerSecond * this.tickRate);
Interface.CallHook("OnFireBallDamage", this, current, hitInfo);
current.OnAttacked(hitInfo);
}
}
Pool.FreeUnmanaged<BaseCombatEntity>(ref list);
}