set entity hide||doc135490

September 20, 2022

Format

 Entity:setEntityHide(hide) 
  • The class to which the function belongs:Entity

Description

Set whether to hide entity objects.


Precautions

If the entity controlled by the player is hidden, the first-person perspective will not change, and the third-person perspective will not see the entity controlled by the player


Parameters

Variable name type Description
hide boolean whether to hide


Code Samples

on the entity clientmount script, hide the entity object.

this:setEntityHide(true)