Author Topic: Detect if a Command was initiated by voice?  (Read 2539 times)

Starblue7

  • Full Member
  • ***
  • Posts: 131
Detect if a Command was initiated by voice?
« on: March 22, 2024, 09:36:36 AM »
When I press the Variable Hotkey that is assigned to Spacebar, it will make my character jump and then run the command.
However, I would like to also be able to SAY "JUMP" and have the same command initiate a Variable Hotkey press of the Spacebar as well.

It seems in order to avoid a double-jump, I need a way to detect if the command was initiated by a vocal command or not.

Is there a way to do this?  I haven't been able to find anything.

Suggestions?

Thanks much!

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4781
  • RTFM
Re: Detect if a Command was initiated by voice?
« Reply #1 on: March 22, 2024, 09:40:28 AM »
The "{CMDACTION}" token returns that information.

Starblue7

  • Full Member
  • ***
  • Posts: 131
Re: Detect if a Command was initiated by voice?
« Reply #2 on: March 22, 2024, 09:57:51 AM »
Hands you a hammer to bonk me over the head...
Totally flew by me.  Thanks!