summaryrefslogtreecommitdiff
path: root/docs/creature_template_movement.md
blob: 0831916b8fdffbb6b9179140d0b678c45456af02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## NOT EXISTING

**This table does NOT currently exist in AzerothCore, but it might be added later. See [#4361](https://github.com/azerothcore/azerothcore-wotlk/issues/4361)**

For creature movements check [creature_template#InhabitType](https://www.azerothcore.org/wiki/creature_template#inhabittype)

# creature_template_movement

**The \`creature\_template\_movement\` table**

This table contains the description of creatures movements, where the creature can move and attack.

**Structure**

| Field           | Type       | Attributes | Key | Null | Default | Extra | Comment |
|-----------------|------------|------------|-----|------|---------|-------|---------|
| [CreatureId][1] | INT    | UNSIGNED   | PRI | NO   | 0       |       |         |
| [Ground][2]     | TINYINT | UNSIGNED   |     | NO   | 0       |       |         |
| [Swim][3]       | TINYINT | UNSIGNED   |     | NO   | 0       |       |         |
| [Flight][4]     | TINYINT | UNSIGNED   |     | NO   | 0       |       |         |
| [Rooted][5]     | TINYINT | UNSIGNED   |     | NO   | 0       |       |         |

[1]: #creatureid
[2]: #ground
[3]: #swim
[4]: #flight
[5]: #rooted

### CreatureId

This is the [creature\_template.entry](http://www.azerothcore.org/wiki/creature_template#creature_template-entry) to which the script is linked to.

### Ground

- "None"=0
- "Run"=1
- "Hover"=2

### Swim
- "None"=0
- "Swim"=1

### Flight
- "None"=0
- "DisableGravity"=1
- "CanFly" =2

### Rooted
- "None"=0
- "Rooted"=1

Notice:

Rooted creature that doesn't fall once dead must use \`Ground\`=1, \`Swim\`=0, \`Flight\`=0, \`Rooted\`=1 (\`Swim\`=1 if above water)

Rooted creature that falls once dead must use \`Ground\`=0, \`Swim\`=0, \`Flight\`=1, \`Rooted\`=1