OnFlameThrowerBurn
Usage
- No return behavior
Example Autogenerated
csharp
private void OnFlameThrowerBurn( FlameThrower instance, BaseEntity baseEntity )
{
Puts( "OnFlameThrowerBurn works!" );
}
Location
- FlameThrower::FlameTick()
csharp
//---
this.nextFlameTime = Time.realtimeSinceStartup + (ownerPlayer.IsNpc ? 0.25f : 0.45f);
Vector3 point = raycastHit.point;
BaseEntity baseEntity = GameManager.server.CreateEntity(this.fireballPrefab.resourcePath, point - ray.direction * 0.25f, default(Quaternion), true);
if (baseEntity)
{
Interface.CallHook("OnFlameThrowerBurn", this, baseEntity);
baseEntity.creatorEntity = ownerPlayer;
FireBall fireBall = baseEntity as FireBall;
if (fireBall != null && ownerPlayer.IsNpc)
{
fireBall.ignoreNPC = true;
//---