well, it looks fine to me, but everytime I try it, it just says:
Add-Ons/Weapon_Baseball_bat/server.cs (507): Unable to find object: '' attempting to call function 'mountImage'
BackTrace: ->servercmdUseTool->Weapon::onUse->BaseBallBatImage::onMount
Can someone tell me what im doing wrong here?
function BaseballbatImage::onMount(%this, %obj, %slot, %client)
{
if(%obj.BatBroken = 1)
{
%obj.mountimage(BaseballbatBrokenImage);
}
else if(%client.Rarm = 1)
{
%obj.hidenode("RHand");
}
else
{
%obj.hidenode("Rhook");
}
}