Entity.GetAngles

From GMod Wiki

Revision as of 08:11, 11 October 2010 by Jcw87 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:GetAngles( )
Description:
This returns an angle object representing the rotation of the entity.
Returns: Angle
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetAngles]Entity.GetAngles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionFinding the rotation of an entity
Used onNewerShared.png
Code
Msg("angles = "..tostring(self:GetAngles()).."\n")
OutputPrints the angles of an entity to the console.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox