Entity.SetAngles

From GMod Wiki

Revision as of 08:11, 5 September 2010 by DarKSunrise (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetAngles( Angle angles )
Description:
Sets the angles, or facing direction, of the entity.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetAngles]Entity.SetAngles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSet entity's rotation to: pitch = 20 deg, yaw = 90 deg, roll = 0 deg.
Used onNewerShared.png
Code
self:SetAngles(Angle(20, 90, 0))
OutputEntity's rotation is modified.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox