Advertisement
OmegaGamingHunters

obj_testnpc_step_event

Aug 18th, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. if (place_meeting(x+3, y+3, PlayerObject) and (keyboard_check_pressed(DialogKey) or keyboard_check_pressed(DialogKey2)) and InDialog == false and global.Frisk_State == PlayerStates.Normal)
  2. {
  3.     InDialog = true;
  4.     CurrentDialog = 0;
  5.     global.Frisk_State = PlayerStates.Dialog;
  6. }
  7. else if (place_meeting(x+3, y+3, PlayerObject) and (keyboard_check_pressed(DialogKey) or keyboard_check_pressed(DialogKey2)) and InDialog == true and DialogDone == true and global.Frisk_State == PlayerStates.Dialog)
  8. {
  9.     InDialog = false;
  10.     DialogDone = false;
  11.     global.Frisk_State = PlayerStates.Normal;
  12. }
  13.  
  14. if (InDialog == true)
  15. {
  16.     event_user(0);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement