Difference between revisions of "UT GetTeam"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(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...')
(No difference)

Revision as of 19:46, 10 February 2010

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