Set the client’s entity object||doc135636

September 20, 2022

Format

 Blockman:setViewEntity(entity) 
  • The class to which the function belongs:Blockman

Description

Sets the entity object that the client observes.


Parameters

Variable name type Description
entity Entity entity object


Code Samples

local entity = EntityClient.CreateClientEntity({cfgName = "myplugin/player1", pos = {x=0,y=3,z=0} })
Blockman.Instance():setViewEntity(entity)