Entity/SetModel

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Empty string warning)
m (Physics note)
 
Line 3: Line 3:
 
|Parent=Entity
 
|Parent=Entity
 
|Description=Sets the model of the entity.
 
|Description=Sets the model of the entity.
 +
 +
This does not update the physics of the entity - see {{ClassFunction|Entity|PhysicsInit}}.
  
 
{{Warning|This silently fails when given an empty string.}}
 
{{Warning|This silently fails when given an empty string.}}

Latest revision as of 07:42, 7 November 2019

 Entity:SetModel( )

Description

Sets the model of the entity.

This does not update the physics of the entity - see Entity:PhysicsInit.

WARNING

This silently fails when given an empty string.

Arguments

string modelName

New model value.
Personal tools
Navigation