Entity.WorldToLocalAngles

From GMod Wiki

Revision as of 19:10, 21 July 2010 by Freemmaann (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity.WorldToLocalAngles( Angle ang )
Description:
Converts a world angle into an angle local for the entity.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.WorldToLocalAngles]Entity.WorldToLocalAngles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionConverting an entiy's world angle to a local angle.
Used onNewerShared.png
Code
local ang = ent:WorldToLocalAngles(ent:GetAngles())
print(ang)
Output0 0 0.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox