Vector.Angle

From GMod Wiki

Jump to: navigation, search
Function
Syntax Vector:Angle( )
Description:
Converts a vector into an Angle .
Returns: Angle
In Object: Vector
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vector.Angle]Vector.Angle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSet an entity's angles
Used onNewerShared.png
Code
ent:SetAngles(ply:GetForward():Normalize():Angle())
OutputEnt faces same way as ply


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox