I know you can get an array of all the zombies through GetAiSpeciesArray("axis", "all")
I was wondering if anyone knew how how to get an array of just dogs?
The docs say:
Code Snippet
Plaintext
entity GetAISpeciesArray([team],[species])
[OPTIONAL] [team] a team name, either 'axis', 'allies', 'neutral', or 'all'. Defaults to 'all'. [OPTIONAL] [species] species of AI to get, 'human', 'dog', 'robot' or 'all'. Defaults to 'human'. CATEGORY: CLIENT/SERVER: Server SUMMARY: Returns an array of the AI EXAMPLE: aiarray = GetAISpeciesArray( "axis", "all" )
[OPTIONAL] [team] a team name, either 'axis', 'allies', 'neutral', or 'all'. Defaults to 'all'. [OPTIONAL] [species] species of AI to get, 'human', 'dog', 'robot' or 'all'. Defaults to 'human'. CATEGORY: CLIENT/SERVER: Server SUMMARY: Returns an array of the AI EXAMPLE: aiarray = GetAISpeciesArray( "axis", "all" )
So I would assume:
Code Snippet
Plaintext
dogs = GetAISpeciesArray( "axis", "dog" );
That didn't work either for some reason. I looked at the docs and I couldn't find anything else besides GetAiArray(name, key) which worked for zombies using GetAiArray("zombie", "targetname") But I couldn't find anyway to do that with dogs.
Last Edit: February 22, 2017, 05:30:05 am by Chilltacular
I haven't tried, but will when I get some time. Until then... I guess you could get an array of all and add each dog to another array, but I'm sure that or some other way should work.