# Teams (scripting commands)

- [addResources](../../commands/addResources.md): Adds resources to a team member.
- [addTeamMember](../../commands/addTeamMember.md): Add given member to given team. Effect is local, unless both member and team are local to PC on which command is executed, then effect is global.
- [agent](../../commands/agent.md): Return a person for a given agent.
- [agents](../../commands/agents.md): Return a list of agents in the current mission.
- [createTask](../../commands/createTask.md): Create a new AI task (subtask of parentTask). Type is name of registered task type.
- [createTeam](../../commands/createTeam.md): Creates a Team and names it.
- [currentTasks](../../commands/currentTasks.md): Returns array with all uncompleted tasks for the given agent. getVariable could be used on Task to get the following special local variables from the task: - `"_this"` Team Member - the teamMember agent the task is…
- [deleteResources](../../commands/deleteResources.md): Delete (unregister) resources of the team member. Resources are deleted in the order they were added. Case insensitive.
- [deleteTeam](../../commands/deleteTeam.md): Destroy given team.
- [isAgent](../../commands/isAgent.md): Check if team member is an agent.
- [members](../../commands/members.md): Return a list of members in given team.
- [registeredTasks](../../commands/registeredTasks.md): Returns array with all registered task types for the given agent. The values are the names set in `CfgTasks` classes `name` property and are the same names used for unregisterTask.
- [registerTask](../../commands/registerTask.md): Registers a new task type. Parameters are defined in the given config class (subclass of `CfgTasks`)
- [removeTeamMember](../../commands/removeTeamMember.md): Remove given member from given team. Effect is local, unless both member and team are local to PC on which command is executed, then effect is global.
- [resources](../../commands/resources.md): Returns the resources of a team member. Results are local to the PC on which command was executed.
- [sendTask](../../commands/sendTask.md): Create a new AI task (subtask of parentTask). Type is name of registered task type.
- [setLeader](../../commands/setLeader.md): Set the leader of the given Team. Effect is local, unless both leader unit and team are local to PC on which command is executed, then effect is global.
- [teamMember](../../commands/teamMember.md): Return an agent for given person.
- [teamMemberNull](../../commands/teamMemberNull.md): A non-existent Team Member. To compare non-existent team members use isNull or isEqualTo:
- [teamName](../../commands/teamName.md): Return a name of given team.
- [teams](../../commands/teams.md): Return a list of teams in the current mission.
- [teamType](../../commands/teamType.md): Returns a type of given team.
