Entity.SetAngles

From GMod Wiki

(Redirected from PhysObj.SetAngle)
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