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...')
 
m (Updating link)
Line 8: Line 8:
 
|param2type = int
 
|param2type = int
 
|param2name = nMembersType
 
|param2name = nMembersType
|param2desc = The type of members to retrieve ([[OBJECT_TYPE_CREATURE]], [[OBJECT_TYPE_PLACEABLE]])
+
|param2desc = The type of members to retrieve ([[OBJECT_TYPE_*|OBJECT_TYPE_CREATURE]], [[OBJECT_TYPE_*|OBJECT_TYPE_PLACEABLE]])
 
|param2default =OBJECT_TYPE_CREATURE
 
|param2default =OBJECT_TYPE_CREATURE
 
|returntype = object
 
|returntype = object

Revision as of 19:28, 3 August 2011

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