Garry's Mod Wiki

Revision Difference

Enums/MOVETYPE#516345

<cat>enum</cat> <enum> <description>Enumerations used by <page>Entity:SetMoveType</page> and <page>Entity:GetMoveType</page>.</description> <items> <item key="MOVETYPE_NONE" value="0">Don't move</item> <item key="MOVETYPE_ISOMETRIC" value="1">For players, in TF2 commander view, etc</item> <item key="MOVETYPE_WALK" value="2">Player only, moving on the ground</item> <item key="MOVETYPE_STEP" value="3">Monster/NPC movement</item> <item key="MOVETYPE_FLY" value="4">Fly, no gravity</item> <item key="MOVETYPE_FLYGRAVITY" value="5">Fly, with gravity</item> <item key="MOVETYPE_VPHYSICS" value="6">Physics movetype</item> <item key="MOVETYPE_PUSH" value="7">No clip to world, but pushes and crushes things</item> <item key="MOVETYPE_NOCLIP" value="8">Noclip</item> <item key="MOVETYPE_LADDER" value="9">For players, when moving on a ladder</item> <item key="MOVETYPE_OBSERVER" value="10">Spectator movetype. DO **NOT** use this to make player spectate</item> <item key="MOVETYPE_CUSTOM" value="11">Custom movetype, can be applied to the player to prevent the default movement code from running, while still calling the related hooks</item> <item key="MOVETYPE_OBSERVER" value="1">0|Spectator movetype. DO **NOT** use this to make player spectate</item> <item key="MOVETYPE_CUSTOM" value="1">1|Custom movetype, can be applied to the player to prevent the default movement code from running, while still calling the related hooks</item> </items> </enum>