# Catalog Reference Count

Grammar — Count of values in reference for player player
FlagsNative | Function

Returns the count of the values for a field for an entry. Returns 0 if the specified field is not an array. Use catalog lookup functions to retrieve a data value or other information from the game data. To find the name of a field path, open the data editor and turn on View Raw Data. For example, if you wanted to get the number of active indicies for a train ability, your field path string would be “InfoArray”.

# Arguments

  • string<reference> — Reference
  • int — Player

Returns — int

native int CatalogReferenceCount(
	string reference,
	int player,
);

Category: Catalog / Lookup

# Examples

— None found —