Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: zorranco on October 21, 2015, 11:24:25 AM
-
Hello, I am trying to perform a simple Mathf.Sign, but I haven't find any action that does this, not even in the ecosystem.
Maybe it is embedded in some "float operator advanced"action, but I can't find it.
Thanks
-
tbh this seems like something you could very easily construct with a simple float compare?
-
Hi,
ManicMinerUK is right,
you need 2 "float compare" actions to do so.
i can make a single action for it if you want.
it would have 3 values then 1 for minimum 1 for maximum and one for the value that needs to be compared
And i can give it 3 events : less than minimum / greater than maximum / inbetween the 2 values
and maybe an error if for example minimum is greater than maximum
-
Ok, I asked because the actions I am using are all packed in a single state running every frame, and I would like to keep it that way...splitting into more states is a little pain...But if there is no action available, no choice, I will use float compare instead.
A mathf.sign action would be great, though :D I am going to make a request
Thanks for help.
-
I made a custom action, see:
http://hutonggames.com/playmakerforum/index.php?topic=11505.0