Author Topic: Force Put All Tools Away [Solved]  (Read 2075 times)

I want to make %obj put all of his tools away within a function. Basically I want it to be like you pressed Q.
« Last Edit: April 13, 2013, 10:58:40 PM by tommybricksetti »

"put away" as in un-equip, like pressing q, or getting rid of?

i think he means to drop all items without them falling on the ground so nobody can retrieve them. basically a script like the clearItems event.

i think he means to drop all items without them falling on the ground so nobody can retrieve them. basically a script like the clearItems event.

One could get that from a dump on any player object on any server. I'm going to assume that he actually means to put all tools away.


Code: [Select]
if(isObject(%cl = %obj.client)) servercmdUnuseTool(%cl);
else { %obj.unmountImage(0); fixArmReady(%obj); }

"put away" as in un-equip, like pressing q, or getting rid of?
Yes, like pressing q. Idk what that other guy got confused about.

Yes, like pressing q. Idk what that other guy got confused about.


:/


Still no luck?
Code: [Select]
if(isObject(%cl = %obj.client)) servercmdUnuseTool(%cl);
else { %obj.unmountImage(0); fixArmReady(%obj); }

No I mean to basically press Q. That way you can just hit Q once to get your tools back, instead of me having to use a useTool command or them double tapping Q.

No I mean to basically press Q. That way you can just hit Q once to get your tools back, instead of me having to use a useTool command or them double tapping Q.

That's exactly what the code they've been repeating does.

No I mean to basically press Q. That way you can just hit Q once to get your tools back, instead of me having to use a useTool command or them double tapping Q.
No... You're not understanding. I've been using this method the whole time.

No... You're not understanding. I've been using this method the whole time.
you're not explaining

the way you're putting it you seem to literally want unUseTool and nothing else

what are you really trying to do

I think he means that
Exactly what happens when you press Q shall happen

(You put the tool away and deselect it in the inventory)

/unusetool does put the tool away, but it does not deselect the inventory slot

I think he means that
Exactly what happens when you press Q shall happen

(You put the tool away and deselect it in the inventory)

/unusetool does put the tool away, but it does not deselect the inventory slot
YESSSSSS

YESSSSSS
...just set their player's currTool variable to zero in a package of serverCmdUnUseTool then i guess?