Garry's Mod Wiki

Garry's Mod Wiki

  DModelPanel:LayoutEntity( Entity entity )

Description

By default, this function slowly rotates and animates the entity being rendered.

If you want to change this behavior, you should override it.

Arguments

1 Entity entity
The entity that is being rendered.

Example

Stops the rendered entity from rotating.

local modelPanel = vgui.Create( "DModelPanel" ) modelPanel:SetPos( 0, 0 ) modelPanel:SetSize( 200, 200 ) modelPanel:SetModel( "models/player/kleiner.mdl" ) function modelPanel:LayoutEntity( ent ) -- do nothing end

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...