OnFlameThrowerBurn
Usage
- No return behavior
Example Autogenerated
csharp
private void OnFlameThrowerBurn( FlameThrower instance, BaseEntity baseEntity )
{
Puts( "OnFlameThrowerBurn works!" );
}
Location
- FlameThrower::FlameTick()
csharp
//---
if (flag)
{
BaseEntity baseEntity = GameManager.server.CreateEntity(this.fireballPrefab.resourcePath, vector, 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;
//---