but the logic doesn't look too nice
+1
I dont get the logic of this
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
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.