Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Flying Robot on September 25, 2013, 03:47:22 AM

Title: Float Compare Store Boolean
Post by: Flying Robot on September 25, 2013, 03:47:22 AM
Another little action. Nothing special. A variance of Float Comparison action.

Compares two floats and store them in Booleans. Can come handy if you want to constantly check and set flags instead of sending events. Especially if you don't want to leave the state while comparing.



Title: Re: Float Compare Store Boolean
Post by: Flying Robot on September 25, 2013, 06:06:22 AM
Interesting thing I found while using this action.

While I was using this with trigger events, I found that it's not working properly. So, I found that the trigger events and Update is having a gap in execution. So, if used with Trigger events this action can throw some garbage booleans before it starts operating.

I wonder what can be the solution.
Title: Re: Float Compare Store Boolean
Post by: Flying Robot on September 25, 2013, 08:09:19 AM
Sorry false alarm. The code is quite alright. Was fooled by the lateupdate in one of the action of the state. Namely Get Angle to Target.

Also, found a typo in the code. A variable declared twice. Replacing that with new version in the first post.
Title: Re: Float Compare Store Boolean
Post by: gbug on January 22, 2014, 06:44:42 PM
Thank you! Just what I needed to keep things tidy and clean.