Faction Slot Data
Role
Defines configurations for a faction slot that determines its role within a game.
Setup
This field can be part of a game object attachable component's inspector.
Inspector
Property | Description |
---|---|
Role | Role of the faction that determines its players' permissions. - Client: Faction slot is controlled by a player that does not have administrative permissions in the game. - Host: Faction slot is controlled by player that has full administrative permissions in the game. - NPC: Faction slot is not controlled by a player. |
Name | Name of the faction to appear in the UI elements. |
Color | Selection and main color of the faction entities. |
Type | Type of the faction defined by a Faction Type Info. |
NPC Type | NPC type of the faction defined by a NPC Type. |
Is Local Player | Is the faction directly controlled by the local player? |
Notes
- When the Role is set to NPC and there is no NPC Type assigned then the NPC faction would be idle and will not be able to make any actions. This can be useful in some cases where you want to test something against a pre-planned structure of a NPC faction that remains unchanged.
- When there is no faction slot that has Is Local Player field enabled then the player will not be able to control any of the faction entities in the game. This can be useful when you want to simulate the behavior of NPC factions playing exclusively against one-another without the intervention of the player.