Customizing to require hammer in hand?Solved
Hello I have been trying to customize the R-Remover tool and can't seem to find the right way to do so but I want a remove tool that I need a hammer to use it. If there is not hammer equipped then it will send a message to player telling them they need a hammer to use the tool!

Thanks!
check for BasePlayer.GetActiveItem()/BasePlayer.GetHeldEntity() (non static methods ofc, so check them for the player using the remove tool)
In response to 2CHEVSKII ():
check for BasePlayer.GetActiveItem()/BasePlayer.GetHeldEntity() (non static methods ofc, so check th...

Sorry not sure If I really understand that but on the UnEquip there is this function

 

void UnEquip()
{
var item = player.GetActiveItem();
if (item == null || item.GetHeldEntity() == null)
return;
var slot = item.position;
item.SetParent(null);
item.MarkDirty();
rt.timer.Once(0.15f, () =>
{
if (item == null) return;
item.SetParent(player.inventory.containerBelt);
item.position = slot;
item.MarkDirty();
});
}

In response to RuptureGameStudios ():
Sorry not sure If I really understand that but on the UnEquip there is this function void UnEquip(...
This method has nothing to do with what you ask for. You have to write another method which will be triggered by trying to remove something and check if player has hammer in hand before doing remove.
edited
In response to 2CHEVSKII ():
This method has nothing to do with what you ask for. You have to write another method which will be...
Would you be interested in giving me a hand or developing a private remove tool plugin for me? Not asking for free either lol.
Locked automatically