Gamemode.SetupPlayerVisibility
From GMod Wiki
| Event Hook | |
| Hook Name | SetupPlayerVisibility |
| Syntax | GM:SetupPlayerVisibility( Player Player, Entity Viewentity ) |
| Description | SetupPlayerVisibility is called as the game is setting up the PVS. This can be used to do remote viewing. |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.SetupPlayerVisibility]Gamemode.SetupPlayerVisibility [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Viewentity defaults to the player. It only changes if you spectate another entity.
See Also