Garry's Mod Wiki

DModelPanel:LayoutEntity

DModelPanel:LayoutEntity

  DModelPanel:LayoutEntity( Entity entity )

Description

This is used internally - although you're able to use it you probably shouldn't.

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

Special Pages


Wikis

?

Render Time: 44ms

DB GetPage 24
Generate Html 2
SaveChanges (1) 8
Render Body 0
Render Sidebar 7