Entity::dimension: Difference between revisions
CocaColaBear (talk | contribs) (Created page with "This property using for setting or getting entity dimension. The dimension determines who the entity is visible to. == Example == <syntaxhighlight lang="typescript"> let dime...") |
CocaColaBear (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
<syntaxhighlight lang="typescript"> | <syntaxhighlight lang="typescript"> | ||
let dimension = player.dimension; | let dimension = player.dimension; | ||
player.dimension = | player.dimension = 2; // set player dimension to 2 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Entity_block}} | {{Entity_block}} | ||
Revision as of 19:11, 18 April 2017
This property using for setting or getting entity dimension. The dimension determines who the entity is visible to.
== Example ==
let dimension = player.dimension;
player.dimension = 2; // set player dimension to 2