How do I get the length of an array in the catalog?
I know there's already a function called "Catalog Field Value Count", but when I try to select the field I want, it asks me to provide an index which makes it useless for me:
I tried accessing it with custom script as just 'GlossaryStrongArray' without an index but it won't compile.
Just info on what I'm trying to do: I'm trying to create a counter table for an AI for an arcade map I'm working on. I want to cycle through GlossaryStrongArray for each unit, and everything works apart from the fact that I can't get the length of the array so I get a bunch of errors in game, which is pretty ugly.
For anyone looking at this and wondering, you just enter "GlossaryStrongArray" in custom script for the field path, WITH the speechmarks " (that was my problem :| )
Hi, just a quick question,
How do I get the length of an array in the catalog? I know there's already a function called "Catalog Field Value Count", but when I try to select the field I want, it asks me to provide an index which makes it useless for me:
I tried accessing it with custom script as just 'GlossaryStrongArray' without an index but it won't compile.
Just info on what I'm trying to do: I'm trying to create a counter table for an AI for an arcade map I'm working on. I want to cycle through GlossaryStrongArray for each unit, and everything works apart from the fact that I can't get the length of the array so I get a bunch of errors in game, which is pretty ugly.
What do I do? :( Am I just missing something?
Cheers, Alex
Solved my own problem!
For anyone looking at this and wondering, you just enter "GlossaryStrongArray" in custom script for the field path, WITH the speechmarks " (that was my problem :| )
e.g.