Entity.GetNetworkedAngle

From GMod Wiki

(Redirected from Entity.GetNWAngle)
Jump to: navigation, search
Function
Syntax Entity:GetNetworkedAngle( Var index [, Angle default] )
Description:
Returns a networked Angle in this entity set with Entity.SetNetworkedAngle with the given index.
Returns: Angle
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetNetworkedAngle]Entity.GetNetworkedAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the networked angle of an entity.
Used onNewerShared.png
Code
for k, v in pairs (ents.GetAll()) do
        v:SetNetworkedAngles("MyAngles", Angle(125,217,0))
end
 
function GetAngle()
    for k, v in pairs (ents.GetAll()) do
        print(v:GetNetworkedAngles("MyAngles"))
    end
end
Output125, 217, 0


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox