As the subject says, I'm curious is binding keys to execute lua scripts is possible right now. If so, can anyone provide an example? I'm having difficulties finding any reference to setting keybinds in the modding documentation.
Thanks!
Can keys be bound to execute lua functions?
Moderator: NBJeff
Re: Can keys be bound to execute lua functions?
If it's possible you wo'nt find that in the modding documentation. you may find what you are looking for in a lua tutorial though.
-
- level1
- Posts: 36
- Joined: Sun Sep 07, 2014 9:18 pm
Re: Can keys be bound to execute lua functions?
i have compiled a list of all available functions i could find from lua,
i did not see anything related to binding keys.
viewtopic.php?f=43&t=50165
also a note: lua does not run continually,
at startup it parses the mission script, then lua only gets called on events that are registered by the mission.
(usually lua bindings in games have a sort of 'tick' function that is called every game frame, but that doesnt seem to be the case here)
i did not see anything related to binding keys.
viewtopic.php?f=43&t=50165
also a note: lua does not run continually,
at startup it parses the mission script, then lua only gets called on events that are registered by the mission.
(usually lua bindings in games have a sort of 'tick' function that is called every game frame, but that doesnt seem to be the case here)
Who is online
Users browsing this forum: No registered users and 12 guests