Detecting if dialog exited?
#1

Is there a way to detect if the dialog exited without adding a custom variable and editing it manually on OnDialogResponse? I've got a function to exit the current dialog from the player and a OnPlayerKeyState call that will exit the dialog, but i don't want it randomly calling the function without a check to see if the dialog is currently running.

Any ideas?
Reply
#2

Quote:
Originally Posted by Seif_ [adream-rp.com
]
You'd have to use a variable. It's just setting it to 1 when you appear a dialog to a player and 0 in OnDialogResponse. But if you don't wanna do that, you could make an include that would do that and not interfere in your GM/FS script.

EDIT: try this, untested: http://pastebin.com/f317bfb43
I'll try it tomorrow, cheers mate.

Going to bed now.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)