No your problem is the reset

Code:
act door open

if(vec_dist(door_handle.x, player.x) < 100 && my.pan == closed_pan){
			set(me, PASSABLE);
			while(my.pan < closed_pan+90){wait(1);my.pan+=door_swing_speed;}
			SND_CREATE_STATIC(door_opens, door_opens_wav); // play the "door opens" sound
			snd_play(door_opens, 100, 0);
			//			door_sounds();  //runs the function for sounds below.
			reset(me, PASSABLE);
			while(key_enter){wait(1);}



Remove either the reset or both the set(passable) and reset(passable)

Last edited by Malice; 09/09/15 21:34.