Anyone know if it's possible to run a trigger when the player presser the enter key while an edit box is focused?
Or perhaps some other way of getting a text input from a player each time he presses enter? (chat messages are no good as the player would have to press enter to show the chat box aswell)
Well, you could have a boolean variable, initially false, set it to true when the edit box is presented. Then have another trigger with the event of Any Player pressed Enter key, and check if boolean is true, if so, hide the edit box, set boolean to false, and do w/e else you want.
Anyone know if it's possible to run a trigger when the player presser the enter key while an edit box is focused?
Or perhaps some other way of getting a text input from a player each time he presses enter? (chat messages are no good as the player would have to press enter to show the chat box aswell)
@SBeier: Go
Well, you could have a boolean variable, initially false, set it to true when the edit box is presented. Then have another trigger with the event of Any Player pressed Enter key, and check if boolean is true, if so, hide the edit box, set boolean to false, and do w/e else you want.
The problem with that is that on key down events doesn't run when the user is writing in an edit box..