net.WriteVector
From GMod Wiki
Function | |
Syntax |
net.WriteVector( Vector ) Where is this used? |
Description: | |
Sends a vector through the net library. | |
Returns: | Nil |
Part of Library: | net |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Net.WriteVector]Net.WriteVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Sends the vector Vector(100, 100, 100) to the client. |
---|---|
Used on | |
Code | net.Start("Test") --Unique name accessed by the recipent's net.WriteVector(Vector(100, 100, 100)) net.Send(Entity(1)) |
Output | Entity 1 will recieve the vector Vector(100, 100, 100) this can be read using net.Recieve |
Additional Notes
- A max of 64kb's can be sent at one time
- WriteVector will send only vectors - use the other net functions to send your data format.
- Consult the net library for more details