I am a beginner who recently started developing plugins for RUST.
In the plugin I am currently making, I really want to erase the thrown rock, but it doesn’t work.
Does anyone know how to erase a thrown rock?
void OnPlayerAttack(BasePlayer attacker, HitInfo info)
{
// throw rock!!!
var heldItem = attacker?.GetActiveItem() ?? null;
if (heldItem != null)heldItem.RemoveFromContainer();
// The rock continues to exist forever without disappearing.....
}