Skip to content

OnExplosiveThrown

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnExplosiveThrown( BasePlayer player, BaseEntity baseEntity, ThrownWeapon instance )
{
    Puts( "OnExplosiveThrown works!" );
}

Location

  • ThrownWeapon::DoThrow(BaseEntity/RPCMessage msg)
csharp
//---
		timedExplosive.ItemOwnership = itemOwnership;
		timedExplosive.SetCreator(msg.player);
	}
	this.SetUpThrownWeapon(baseEntity);
	base.StartAttackCooldown(this.repeatDelay);
	Interface.CallHook("OnExplosiveThrown", msg.player, baseEntity, this);
	base.UseItemAmount(1, false);
}

Released under the MIT License.