How to wait for user input (key down)

dougfinn

New member
I'm having real trouble figuring out how to wait for user input, e.g. an agent does something only after a key press.

Is there any pattern for this?

It also doesn't seem possible to check for an any key press.

Thanks.
 
There is the GetButton action task that you can use. You'd store the result in a SharedBool and then use the CompareBool task.
 
Top