I think that is normal because to set the command binding you need to use game:set_command_keyboard_binding(command, key).
(You are using the getter function and not the setter.) It is not necessary to call the event game:on_character_pressed(key). Try to write somewhere in the game manager
That should probably work, although I haven't tested this code.
(You are using the getter function and not the setter.) It is not necessary to call the event game:on_character_pressed(key). Try to write somewhere in the game manager
Code Select
game:set_command_keyboard_binding("attack", "e")
That should probably work, although I haven't tested this code.