Author Topic: Disarm gun?  (Read 729 times)

Is it possible for a gun to shoot someone, then they lose whatever weapon they were holding at that moment?


Yeah, in the oncollision:

%col.unmountImage(0);
serverCmdDropTool(%col.client,%col.client.currTool);

Should work, unless the currTool is stored on the player object - I can't remember.

I think this would be a useful tool. If there was someway to make the dropped weapon unable to be picked up by that person again. Can't tell you how many times being shot with a rocket while building results in a kick or ban.

Earth disarm


that was a spear like weapon though. im sure itll be just as easily scripted as a gun though

Just copy the oncollision function and place it at the bottom of the gun script.