Its "Protoss" with 2 s, so this should not even work at all. Your local race variable defaults to protos, though, so if the switch fails, it will always be protos.
BTW the catalog field value for each race is actually a 4 character string, so you need to use "Prot" "Terr" and "Zerg" for your comparison.
Hey,
I couldn't find a function to check what race a unit is so I tried creating my own.
I now have this:
And it always returns Protos.
I probably screwed up the Catalog Field Value Get part, but I can't see where the error is. Can anyone help me?
Thanks!
Its "Protoss" with 2 s, so this should not even work at all. Your local race variable defaults to protos, though, so if the switch fails, it will always be protos.
BTW the catalog field value for each race is actually a 4 character string, so you need to use "Prot" "Terr" and "Zerg" for your comparison.
Thanks it works now:P Already though I spelled Protoss wrong, but wasn't sure so thanks;)