Player.SetAllowFullRotation
From GMod Wiki
Function | |
Syntax | Player.SetAllowFullRotation( Boolean Allow ) |
Description: | |
Sets whether the player model is allowed to fully rotate. | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SetAllowFullRotation]Player.SetAllowFullRotation [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Everyone is allowed to rotate fully. |
---|---|
Used on | |
Code | for _, v in ipairs( player.GetAll() ) do v:SetAllowFullRotation( true ) end |
Output | N/A |
Additional Notes
- Setting this to true makes your player model rotate with your view, so if you look straight down your model will be face first on the ground.