Entity.SetSkin
From GMod Wiki
Function | |
Syntax | Entity:SetSkin( Integer skin ) |
Description: | |
Sets the skin number the entity should use. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetSkin]Entity.SetSkin [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Changes the skin of an entity to skin 2. |
---|---|
Used on | |
Code | Entity:SetSkin( 2 ) |
Output | Nothing unless Entity is defined and it has a skin 2. |
Additional Notes
- Set the skin to 0 if you want the model to use the default skin.
- Cannot be set after ENT:Spawn or ENT:Activate. Not realtime.
- Does not work on citizens. ((verification needed))