Entity.GetMoveType
From GMod Wiki
Function | |
Syntax | Entity:GetMoveType( ) |
Description: | |
Returns the entity's Move Type as a movetype enumeration. | |
Returns: | enum |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetMoveType]Entity.GetMoveType [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- To transition between move types smoothly (i.e. MOVETYPE_FLY and MOVETYPE_WALK), you can check if the player is on the ground or not by using Entity:OnGround. Then set their move type to walk as they hit the ground and to fly as they become airborne.