Bf read.ReadShort

From GMod Wiki

Jump to: navigation, search
Function
Syntax bf_read:ReadShort( )
Description:
Read a short from the usermessage (0-65535)
Returns: Integer
In Object: Bf_read
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Bf read.ReadShort]Bf read.ReadShort [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAssuming um is a valid Usermessage, this makes hello the short received from the server
Used onNewerClient.png
Code
function recvShort( um )
     hello = um:ReadShort()
     //hello is now the short received from the server
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox