Creature formations tc2
From TrinityCore Wiki
|
Back to world database list of tables.
The `creature_formations` table
This table allows to group mobs. Members of group will follow others, and attack their targets.
Structure
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
| leaderGUID | int(11) | unsigned | NO | NULL | |||
| memberGUID | int(11) | unsigned | PRI | NO | NULL | ||
| dist | float | unsigned | NO | NULL | |||
| angle | float | unsigned | NO | NULL | |||
| groupAI | int(11) | unsigned | NO | NULL |
leaderGUID
GUID of group leader
memberGUID
GUID of group member
dist
Maximum distance between group leader and member
angle
Angle between leader and member Note: Only degrees are used! Values should be between 0 and 360
groupAI
Sets group member behaviours, values are:
| Value | Behaviour |
| 0 | If any creature from group is attacked, members won't assist |
| 1 | Group member will assist only their leader if attacked. |
| 2 | Group members will assist all group members |
