|
What I would like to do is have a way to reference the input button regardless of what the player changes the controls to. For instance if the player changes the guard button to Z instead of X, I would like a way to tell the player, hey press "proper button" to guard. I can handle everything else, just a bit clueless as how to properly reference the inputs. How would I go about doing that? I already have my controls set up btw.
(comments are locked)
|
|
Unfortunately that's not possible at the moment since you have absolutely no access to the input manager from your scripts. Make sure you vote for this feature HERE. At the moment the only way around that is to disable the input manager so the user can't change the button, or use your own custom inputmanager. AFAIK there is a ready-to-use implementation in the asset store, but i guess not for free ;) edit Maybe i was wrong. This one seems to be free ;) ah thanks for the answer but I'm not really going to go through all that. Instead I'll just tell the player which button to press, they can figure it out themselves... or just stop playing. LoL
Dec 04 '11 at 09:45 PM
TheEmeralDreamer
(comments are locked)
|

hmm, it seems you're just out of luck there, quick scan of the docs shows no way to find out what key has been assigned by the player in the input manager, and google just gave me things like this thread and this question where others were lamenting the lack of such a function.
Might want to post about it in the wish list section of the official forum; I wouldn't think it would that difficult a feature to add, and clearly you're not the first to want it.