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