Teams
22 scripting commands. Also as Markdown for agents.
- addResourcesAdds resources to a team member.
- addTeamMemberAdd 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.
- agentReturn a person for a given agent.
- agentsReturn a list of agents in the current mission.
- createTaskCreate a new AI task (subtask of parentTask). Type is name of registered task type.
- createTeamCreates a Team and names it.
- currentTasksReturns array with all uncompleted tasks for the given agent. getVariable could be used on Task to get the following special local variables from the…
- deleteResourcesDelete (unregister) resources of the team member. Resources are deleted in the order they were added. Case insensitive.
- deleteTeamDestroy given team.
- isAgentCheck if team member is an agent.
- membersReturn a list of members in given team.
- registeredTasksReturns 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…
- registerTaskRegisters a new task type. Parameters are defined in the given config class (subclass of `CfgTasks`)
- removeTeamMemberRemove 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.
- resourcesReturns the resources of a team member. Results are local to the PC on which command was executed.
- sendTaskCreate a new AI task (subtask of parentTask). Type is name of registered task type.
- setLeaderSet 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…
- teamMemberReturn an agent for given person.
- teamMemberNullA non-existent Team Member. To compare non-existent team members use isNull or isEqualTo:
- teamNameReturn a name of given team.
- teamsReturn a list of teams in the current mission.
- teamTypeReturns a type of given team.