G.SetGlobalAngle

From GMod Wiki

Jump to: navigation, search
Function
Syntax SetGlobalAngle( Var index, Angle value )
Where is this used?
Description:
Similiar to the function Entity:SetNetworkedAngle - Sets a networked Angle , but outside of the entity.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SetGlobalAngle]G.SetGlobalAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets 2 global angles which you can later get with GetGlobalAngle.
Used onNewerServer.png
Code
SetGlobalAngle( 1337, Angle( 90, 0, 180 ) )
SetGlobalAngle( "Player1AimAngle", Entity(1):EyeAngles() )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox