PlayMaker Updates & Downloads > Official Action Updates
Conditional Expression Action (BETA)
Alex Chouls:
--- Quote --- expression should allow the return of more than a bool, floats, ints, string, etc. I feel it could be frustrating to get such a convenient action to just return bools, but I am not sure how it's made under the hood, so it may be not really possible to expand on this.
--- End quote ---
I'm looking into this - maybe Lea will help out :)
But I think it will be a separate action, e.g.,: Math Expression.
--- Quote ---also, I tried to use a string variable but I think the value will always evaluate to true, I think it should evaluate string for "1", "true" "false", empty or with content and return true or false on these cases.
Or, maybe double check what variables are use and warn the user about unsupported variable types within this expression
--- End quote ---
Good point. This should be possible...
Lane:
Build errors! Woo!
This is for Standalone. It also happened on the previous version.
The line compiles apparently, so I assume its not being picky about formatting. (edit, actually it fails without any actions being used, so its in the dll)
Alex Chouls:
Thanks! I'll fix this in the next release...
Alex Chouls:
Uploaded a new version that should fix the build error.
Lane:
Works great, I can't seem to break anything else on it. Going to start using it on future iterations of the flight AI and might find more out then. Bundling lots of conditions into a bool value is going to be so useful for AI, especially with a delegate fsm just reading contextual data and flipping bools, then the behavior fsm responding to those flags async.... *hnnnngggghh*..
Only other thing I notice that could be a small nuisance is toggling the expression box to a variable and back will null the field, so you lose anything you might have typed in. Really just a minor inconvenience on the rare occasion that you hit the button accidentally.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version