When the player presses a key, I need to get it to my hud mutator somehow.
I know how to add key binds using the UTExtraKeyBindings class.
At first I had the binds perform a function that was declared as exec in the mutator. But it is not getting called, and I think I remember now that exec functions are not called on mutators? Probably not
So then I tried having the bind call the Mutate method, which worked, but from there, how do I get ahold of the mutator back on the client, so that I can tell it to do something? Though, this is not ideally the way to go. It seems silly to follow this route:
Ideally, the user presses key on the client, and somehow I get that key press to the hud mutator on the client.
Does anyone have any experience with this sort of thing?
Thanks.
I know how to add key binds using the UTExtraKeyBindings class.
At first I had the binds perform a function that was declared as exec in the mutator. But it is not getting called, and I think I remember now that exec functions are not called on mutators? Probably not
So then I tried having the bind call the Mutate method, which worked, but from there, how do I get ahold of the mutator back on the client, so that I can tell it to do something? Though, this is not ideally the way to go. It seems silly to follow this route:
- user presses key
- command gets sent to server
- server sends a message back to Sender
Ideally, the user presses key on the client, and somehow I get that key press to the hud mutator on the client.
Does anyone have any experience with this sort of thing?
Thanks.