sSuitChange 0 0 -4999999 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 state = 0; statetime = 0; sfx_stop_loops(); global.enablecontrol = 0; with (oCharacter) { kLeft = 0; kRight = 0; kUp = 0; kDown = 0; kJump = 0; kJumpPressed = 0; kRun = 0; kAim = 0; kFire = 0; kMissile = 0; } lights = -4; text1 = get_text("Items", "GravitySuit"); text2 = get_text("Items", "GravitySuit_Text"); 1 603 7 0 0 -1 2 self 0 0 1 if (state == 0) { if (statetime == 60) { state = 1; statetime = 0; } } if (state == 1) { if (statetime == 0) with (oGravityPod) { closed = 1; depth = -100; } if (statetime == 120) { state = 2; statetime = 0; } } if (state == 2) { if (statetime == 0) { lights = instance_create(x, y, oGravityPodLights); sfx_loop(sndVariaLoop); } if (statetime == 180) { with (lights) instance_destroy(); state = 3; statetime = 0; sfx_stop(sndVariaLoop); } } if (state == 3) { if (statetime == 0) { with (oGravityPod) closed = 0; global.item[9] = 1; global.currentsuit = 2; instance_create(x, y, oGravityOverlay); sfx_play(sndA4DoorOpen); } if (statetime == 120) { state = 4; statetime = 0; } } if (state == 4) { if (statetime == 0) { } if (statetime == 320) { // og 180 with (oGravityPod) depth = 50; global.enablecontrol = 1; event_user(0); } } statetime += 1; with (oCharacter) { if (x > room_width/2) x -= 1; if (x < room_width/2) x += 1; if (y < 160) y += 1; } 1 603 7 0 0 -1 2 self 0 0 1 global.item[9] = 1; global.itemstaken += 1; myposx = floor(x / 320); myposy = floor((y - 8) / 240); mapposx = myposx + global.mapoffsetx; mapposy = myposy + global.mapoffsety; global.dmap[mapposx, mapposy] = 2; with (oControl) event_user(2); global.itemtype = 0; display_itemmsg(text1, text2, "", ""); instance_destroy(); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1