The OnKeyChanged Event
Last updated
Was this helpful?
Last updated
Was this helpful?
cInput calls an event whenever either the function which waits for player input, or the function is called. Note that it will still be called in cases where the keys stay the same (such as from canceling a action). An example for why you might want to use the OnKeyChanged event would be to run a function to update the text labels in a custom UI.
Here's some code showing one such example:
If events are completely new to you, you may find helpful.