Group: Difference between revisions
Created page with "{{Flag |name={{PAGENAME}} |files={{Categ|Rules(md).ini}} |values={{Values|Integer}} |default=−1 |types={{Categ|TeamTypes}}, {{Categ|TaskForces}} |ts=yes |fs=yes |ets=yes..." |
mNo edit summary |
||
Line 23: | Line 23: | ||
== Groups == | == Groups == | ||
Groups help to differentiate between units when managing teams. | Groups help to differentiate between units when managing teams. AI built units are assigned to the group defined in its TeamType/TaskForce. AI auto-produced units like harvesters which doesn't have a TeamType/TaskForce in AI ini are assigned with group -1(no group). Starting units, freeunits, droppod/paradrop units, units from crates, escaping units from destroyed buildings etc. also get group -1. Units preplaced on the map can be assigned to a group, and when creating a team that is allowed to recruit, it will take this unit group into account. Map action 84 can wake up objects with a certain group ID (setting it from sleeping or harmless to guard). |
Revision as of 12:21, 13 January 2018
Flag: | Group |
File(s): | Rules(md).ini |
Values: | Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. |
Default: | −1 |
Applicable to: | TeamTypes, TaskForces |
For TeamTypes
Specifies the group ID this team type applies to. All units recruited for this team will switch over to this group. Defaults to -1 (no group). If the value is -1, the attached task force's Group is used. A value of -2 means "any group" and effectively disables the group check.
By default teams only recruit units from the same group. This restriction can be lifted using Recruiter.
Note that if units are recruited using a Group=-2 team type, the units are assigned to group -2. Group -2 on team types matches any unit's group, but a group ID of -2 on a unit does not match any team type; it only matches Group=-2 team types.
For TaskForces
Specifies the group ID this task force applies to. Only used in case the team type using this task force has Group=-1 set.
Groups
Groups help to differentiate between units when managing teams. AI built units are assigned to the group defined in its TeamType/TaskForce. AI auto-produced units like harvesters which doesn't have a TeamType/TaskForce in AI ini are assigned with group -1(no group). Starting units, freeunits, droppod/paradrop units, units from crates, escaping units from destroyed buildings etc. also get group -1. Units preplaced on the map can be assigned to a group, and when creating a team that is allowed to recruit, it will take this unit group into account. Map action 84 can wake up objects with a certain group ID (setting it from sleeping or harmless to guard).