net.SendPVS

From GMod Wiki

Jump to: navigation, search
Function
Syntax net.SendPVS( Vector )
Where is this used?
Description:
Sends the current net library data to all players which the server can see from the specified position.
Returns: Nil
Part of Library: net
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Net.SendPVS]Net.SendPVS [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionSends data to all players which the server can see from the center of the map.
Used onNewerServer.png
Code
net.Start("Test")
    net.WriteString("Hi There")
net.SendPVS(Vector(0,0,0))
 
OutputAny players who are visible from the center of the map and not hiding behind a prop, brush or entity will recieve the data "Hi There"


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox