Player.SetViewOffset
From GMod Wiki
Function | |
Syntax | Player:SetViewOffset( Vector ) |
Description: | |
Set the view offset of a player | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SetViewOffset]Player.SetViewOffset [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This piece of code changes all players view offset of the z axis to 700 |
---|---|
Used on | |
Code | for k,v in pairs(player.GetAll()) do v:SetViewOffset(Vector(0,0,700)) end |
Output | See Description |
Additional Notes
- Changing the Vectors.x and .y axis don't seem to change the view what so ever.