Garry's Mod Wiki

Revision Difference

Enums/MOVETYPE#516072

<cat>enum</cat> <enumeration> <description>Enumerations used by <page>Entity:SetMoveType</page> and <page>Entity:GetMoveType</page>.</description> <fields>{{EnumField|MOVETYPE_NONE|0|Don't move</fields>⤶ <fields>⤶ <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>⤶ </fields>⤶ </enumeration> ⤶ ⤶ {{EnumField|MOVETYPE_ISOMETRIC|1|For players, in TF2 commander view, etc}}⤶ {{EnumField|MOVETYPE_WALK|2|Player only, moving on the ground}}⤶ {{EnumField|MOVETYPE_STEP|3|Monster/NPC movement}}⤶ {{EnumField|MOVETYPE_FLY|4|Fly, no gravity}}⤶ {{EnumField|MOVETYPE_FLYGRAVITY|5|Fly, with gravity}}⤶ {{EnumField|MOVETYPE_VPHYSICS|6|Physics movetype}}⤶ {{EnumField|MOVETYPE_PUSH|7|No clip to world, but pushes and crushes things}}⤶ {{EnumField|MOVETYPE_NOCLIP|8|Noclip}}⤶ {{EnumField|MOVETYPE_LADDER|9|For players, when moving on a ladder}}⤶ {{EnumField|MOVETYPE_OBSERVER|10|Spectator movetype. DO **NOT** use this to make player spectate}}⤶ {{EnumField|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}}⤶ }}