Bf read.ReadAngle

From GMod Wiki

Jump to: navigation, search
Function
Syntax bf_read:ReadAngle( )
Description:
Read an angle from the usermessage.
Returns: Angle
In Object: Bf_read
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Bf read.ReadAngle]Bf read.ReadAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the incoming angle from an usermessage called SendAngle
Used onNewerClient.png
Code
local function ReadAngle(msg)
   local angle = msg:ReadAngle() -- reads the angle
   print(angle)
end
usermessage.Hook("SendAngle", ReadAngle)
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox