Entity.SetMoveType
From GMod Wiki
Revision as of 15:33, 30 October 2009 by Crazy Quebecer (Talk | contribs)
| Function | |
| Syntax | Entity:SetMoveType( enum movetype ) |
| Description: | |
| Sets the entity's movetype. This function takes a movetype enumeration. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetMoveType]Entity.SetMoveType [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Freezes a prop/player in place. |
|---|---|
| Used on | |
| Code | Entity:SetMoveType(MOVETYPE_NONE) -- Make its movetype MOVETYPE_NONE, so it sits still. |
| Output | N/A |
Additional Notes
- See Movetype for a list of the values used with this function.