Entity.GetRenderBounds

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetRenderBounds( )
Description:
Gets an entity's bounding render box, which is used by the engine to check if the entity needs to be rendered at all.
Returns: Vector Min, Vector Max
In Object: Entity
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetRenderBounds]Entity.GetRenderBounds [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDoubles the local player's render bounds.
Used onNewerClient.png
Code
 
local min, max = LocalPlayer():GetRenderBounds( );
LocalPlayer():SetRenderBounds( min * 2, max * 2 )
 
OutputThe local player's render bounds are doubled. (Does not change the size in which the player is rendered.)


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox