Entity.GetRight

From GMod Wiki

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