playMaker

Author Topic: Negative ABS  (Read 627 times)

Mupp

  • Junior Playmaker
  • **
  • Posts: 64
    • View Profile
Negative ABS
« on: December 03, 2019, 07:22:55 AM »
No really required but it would be nice to have a checkbox in the ABS actions to set the value to negative. Saves the work of adding one whole extra action to the state.  ;D

And having the option to choose which variable to save the result in would be nice.
« Last Edit: December 03, 2019, 07:33:13 AM by Mupp »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15212
  • Official Playmaker Support
    • View Profile
Re: Negative ABS
« Reply #1 on: December 03, 2019, 11:06:24 PM »
Hi,

Please heck out FloatAbsAdvanced on the ecosystem, it will give you a multiplier, set to to -1, and done.

 the action also got the advanced treatment where you can select when to execute, ( update, late, fixed).

 Let me know if it works for you.

Bye,

 Jean

Mupp

  • Junior Playmaker
  • **
  • Posts: 64
    • View Profile
Re: Negative ABS
« Reply #2 on: December 04, 2019, 07:38:10 AM »
I actually did a search for ABS and negative but I found nothing. It's really easy to not find what you are looking for unless you type it exactly so I missed it. Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15212
  • Official Playmaker Support
    • View Profile
Re: Negative ABS
« Reply #3 on: December 05, 2019, 04:26:20 AM »
Hi,

 yes, I agree... there is not real other way then text based search, and so you can only search by text inside the script itself.  I improved the search by adding keywords in the script comments, abs should work.

search for FloatAbsAdvanced otherwise to be sure.


Bye,

 Jean