ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Group

From ModEnc
Revision as of 22:45, 10 July 2013 by AlexB (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
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. Units build from factories are assigned to group -1 (no group). 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).