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 = skinID;
	baseEntity.Spawn();
	SetUpThrownWeapon(baseEntity, GetOwnerItem());
	StartAttackCooldown(repeatDelay);
	Interface.CallHook("OnExplosiveDropped", msg.player, baseEntity, this);
	UseItemAmount(1);
}

Released under the MIT License.