(01-29-2015, 11:44 PM)Outlawz7 link Wrote: [size=1em]"_sideFactor = switch (side _x)"Â returns a boolean, not a number[/size]
Why would it return a boolean? It should return a float, just like the second switch.
EDIT: I think I know what's wrong, adding a default cause should fix the problem.
Quote:[size=1em] "_rankFactor = switch (rank _x) do {
"COLONEL": {1.0};" you need 'case' in front of the strings for the 'switch do' to work[/size]
True, forgot those.
I don't need luck, I have ammo.