G.AddOriginToPVS

From GMod Wiki

Jump to: navigation, search
Function
Syntax AddOriginToPVS( Vector position )
Where is this used?
Description:
Adds the position to the PVS
Returns: nil
Part of Library: Global Functions
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.AddOriginToPVS]G.AddOriginToPVS [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis example adds the point (0,0,0) to the PVS.
Used onNewerServer.png
Code
function mySetupVis(ply)
	AddOriginToPVS(Vector(0,0,0))
end
hook.Add("SetupPlayerVisibility", "mySetupVis", mySetupVis)
OutputN/A


Additional Notes

Notepad-48.png This is only useful in the SetupPlayerVisibility hook


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox