Author Topic: How to perform addition function in voiceattack  (Read 870 times)

Pannam

  • Newbie
  • *
  • Posts: 14
How to perform addition function in voiceattack
« on: December 25, 2020, 03:31:38 PM »
I after i get the required value from flight simulator using getValue I want to add 3 to it and setValue.
I can i do this ?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: How to perform addition function in voiceattack
« Reply #1 on: December 25, 2020, 04:00:02 PM »
There are math functions in the "Set a Small Integer Value", "Set an Integer Value", and "Set a Decimal Value" actions you can use (basic increment and decrement in the former, advanced features under the "Computed value" option in the latter two; You'd want to use the action appropriate to the datatype returned by "getValue").

Another option is the "{EXP:}" token, though that requires typing in the correct syntax, which the aforementioned actions do not.