last user input

Pertex
21 Mar 2012, 10:38Hi ALex,
is there an internal variable which always saves the last user input?
is there an internal variable which always saves the last user input?
Alex
21 Mar 2012, 12:23Usually player.currentcommand
Although it won't be populated if the player has just used the "oops" feature (e.g. "look at sfoa", "oops sofa" will run the equivalent of "look at sofa", but the player never typed that exact command in).
What are you trying to achieve though? There may be a better way.
Although it won't be populated if the player has just used the "oops" feature (e.g. "look at sfoa", "oops sofa" will run the equivalent of "look at sofa", but the player never typed that exact command in).
What are you trying to achieve though? There may be a better way.