Entity::dimension: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
This property using for setting or getting entity dimension. The dimension determines who the entity is visible to.
This property using for setting or getting entity dimension. The dimension determines who the entity is visible to.
== Example ==
 
<syntaxhighlight lang="typescript">
== Example ==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
let dimension = player.dimension;
let dimension = player.dimension;
player.dimension = 2; // set player dimension to 2
player.dimension = 2; // set player dimension to 2
</syntaxhighlight>
</syntaxhighlight>
 
</div>
==See Also==
==See Also==
{{Entity_block}}
{{Entity_block}}

Revision as of 14:15, 13 May 2017

This property using for setting or getting entity dimension. The dimension determines who the entity is visible to.

Example

Server-Side
let dimension = player.dimension;
player.dimension = 2; // set player dimension to 2

See Also