Well i'm trying to make somekind of Rocket Launcher, but it's not removing from inventory correctly.
Hmm.. Better explain:
-When I shoot, the Rocket Launcher should be discarded. Well that's not working.
function RPGLauncherImage::onDone(%this,%obj,%slot)
{
%obj.unMountImage(%slot);
%currSlot = %obj.lastRPGLauncherSlot;
%obj.tool[%currSlot] = 0;
%obj.weaponCount--;
messageClient(%obj.client,'MsgItemPickup','',%currSlot,0);
serverCmdUnUseTool(%obj.client);
}
Is that the script for removing from your slot correct?