Entity.WorldToLocalAngles
From GMod Wiki
| Function | |
| Syntax | Entity.WorldToLocalAngles( Angle ang ) |
| Description: | |
| Converts a world angle into an angle local for the entity. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.WorldToLocalAngles]Entity.WorldToLocalAngles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Converting an entiy's world angle to a local angle. |
|---|---|
| Used on | |
| Code | local ang = ent:WorldToLocalAngles(ent:GetAngles()) print(ang) |
| Output | 0 0 0. |