Exactly, I was thinking about it but forgot to mention.
Mouse mode 2 shows the mouse and stops mouse_force.x/y .
So , you should modify your mouse toggle function to toggle between mouse mode 0 and 2.
I didnt see 3run's full code, but I'm aiming to show him how to pause a function until a key is pressed. I do it all the time for debugging:
Code:
while(!key_space) { wait(1); }
while(key_space) { wait(1); }


I, too, am replying without seeing inventory.c (or even without any idea whats in it)

EDIT: Forgot to mention , your inventory is still visible because you're not closing it the way you should. The problem is not in the entity function pausing , but in the inventory close function...

Last edited by EpsiloN; 09/19/13 11:34.

Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201