Return to Main Docs Page

MOVETYPE

NewerServer.png Enumerations used by functions like Entity:SetMoveType and Entity:GetMoveType.

Values:



ENUM NUM Description
MOVETYPE_NONE 0 Don't move
MOVETYPE_ISOMETRIC 1 For players, in TF2 commander view, etc
MOVETYPE_WALK 2 Player only, moving on the ground
MOVETYPE_STEP 3 Monster/NPC movement
MOVETYPE_FLY 4 Fly, no gravity
MOVETYPE_FLYGRAVITY 5 Fly, with gravity
MOVETYPE_VPHYSICS 6 Physics movetype
MOVETYPE_PUSH 7 No clip to world, but pushes and crushes things.
MOVETYPE_NOCLIP 8 Noclip
MOVETYPE_LADDER 9 For players, when moving on a ladder
MOVETYPE_OBSERVER 10 Spectator movetype. DO NOT use this to make player spectate
MOVETYPE_CUSTOM 11 Custom movetype, can be applied to the player to prevent the default movement code from running, while still calling the related hooks