Entity.GetRight

From GMod Wiki

Revision as of 22:42, 11 November 2011 by nüke (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax ent:GetRight( )
Description:
Returns the rightward vector of the entity.
Returns: Vector
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetRight]Entity.GetRight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints the rightward vector of all entities
Used onNewerShared.png
Code
for _, v in pairs ( ents.GetAll() ) do
    MsgN( tostring( v:GetRight() ) )
end
OutputX, Y, Z values in console.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox