Apply skin||doc135489

September 20, 2022

Format

 Entity:applySkin(skin) 
  • The class to which the function belongs:Entity

Description

Changing the character skin of an entity object will only see the effect of changing the skin on the current client, and cannot automatically synchronize with other clients. If you need to synchronize the replaced skin to display on other clients, please use thechangeSkin 。


Parameters

Variable name type Description
skin SkinData skin data


Code Samples

on the entity clientmount script, change the entity skin.

local skinData = {
  armor_chest = 'blue'
}
this:applySkin(skinData)