Create_0.gml 456 B

1234567891011121314151617181920212223242526272829
  1. depth = 10;
  2. if self_check_activated()
  3. {
  4. activated = true;
  5. exit;
  6. }
  7. event_inherited();
  8. dist_tor = 144;
  9. dist_y_tor = 144;
  10. indi_y_offset = -96;
  11. activated = false;
  12. callback = function()
  13. {
  14. if global.save_data.player.abilities.accesscard == false
  15. type(["It seems that you'll need an access card to open this door."],
  16. unlock_player);
  17. else
  18. {
  19. control.animation_spd = 0.25;
  20. indi_img_index = 0;
  21. activated = true;
  22. lock_player();
  23. autosave();
  24. }
  25. }