UT GetTeam

From Dragon Age Toolset Wiki
Revision as of 19:46, 10 February 2010 by BryanDerksen (Talk | contribs) (Created page with '{{dafunction |name = UT_GetTeam |brief = Returns an array of all team members in the area. |param1type = int |param1name = nTeamID |param1desc = This is the team ID number (store...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns an array of all team members in the area.

object[] UT_GetTeam(
int nTeamID,
int nMembersType = OBJECT_TYPE_CREATURE
);
Parameters:
nTeamID
This is the team ID number (stored in CREATURE_TEAM_ID)
nMembersType
The type of members to retrieve (OBJECT_TYPE_CREATURE, OBJECT_TYPE_PLACEABLE)
Returns:

an array of all team members in the area.

Source:

Core Resources.utility_h

Description

This function searches through all the creatures in the area and returns any creature that has it's team set to nTeamID