Skip to content

OnExplosiveDropped

Usage

  • No return behavior

Example Autogenerated

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

Location

  • ThrownWeapon::DoDrop(BaseEntity/RPCMessage msg)
csharp
//---
	baseEntity.creatorEntity = msg.player;
	baseEntity.skinID = this.skinID;
	baseEntity.Spawn();
	this.SetUpThrownWeapon(baseEntity);
	base.StartAttackCooldown(this.repeatDelay);
	Interface.CallHook("OnExplosiveDropped", msg.player, baseEntity, this);
	base.UseItemAmount(1);
}

Released under the MIT License.