Quote:
but the logic doesn't look too nice
+1

I dont get the logic of this
Code:
bag_i_counter = 1;
				
  if(bag_i_counter == 1)
  {
    inv_open_bag(bag, 500, 0);
    mouse_mode = 1;
					
    ..

First u set it to 1 then u check if its 1 ? Do u want to prevent a double start of this part ? If so this wont work this way in while. Without testing it, it needs to look like this fex
Code:
if(key_i)
      {	
        bag_i_counter = 1;
	          inv_open_bag(bag, 500, 0);
	  mouse_mode = 1;
			
        while(bag_i_counter == 1)
        {					
	  if(key_i)
	  {
	    bag_i_counter = 0;
	    inv_close_bag(bag);
	    mouse_mode = 0;
            break;
	  }
          wait (1);
        }
      }

This would pause player movement btw.

Last edited by rayp; 09/19/13 06:46.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;