You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Dimensions are a way of separating parts of the game world from each other. Each dimension can contain elements of the types listed below. These are are only visible to players in the same dimension. You can, in theory, have up to 65535 dimensions.</p>
14
+
15
+
<p>The following <ahref="/reference/Element/">Element</a> types can be used in the Dimension system:</p>
<li>Custom dummy elements (<ahref="/reference/createElement/">createElement</a>)</li>
32
+
</ul>
33
+
34
+
<p>The camera's dimension is updated when:</p>
35
+
<ul>
36
+
<li>The local player joins the server (set to 0)</li>
37
+
<li><ahref="/reference/resetMapInfo/">resetMapInfo</a> is called (set to 0)</li>
38
+
<li>The local player spawns (set to the player's dimension)</li>
39
+
<li><ahref="/reference/setElementDimension/">setElementDimension</a> is called</li>
40
+
</ul>
41
+
42
+
<h3>Uses</h3>
43
+
<p>A useful use of this is for unique <ahref="/reference/interior/">interiors</a>. For example, there is only one actual Pizza restaurant in San Andreas, with each warp point going to the same place. This works fine in single player games (as you aren't going to be in two places at once), but with multiplayer this can be confusing, as you could enter in one place and see all the players who entered in another. To avoid this, you can split the players into dimensions, so they will only see players who entered in the same place, duplicating the Pizza restaurant interior as many times as you want with different dimensions.</p>
<p>An interior in GTA is an area that isn't 'outside'. For example, inside houses, casinos, restaurants, shops etc. Players can not, by default, access these. You can use various scripting functions to move elements into these interiors. When you change the interior a player is in, they can only see the non-player elements in that interior. Players can see each other in whatever interior they are in.</p>
14
+
15
+
<p>You can have up to 255 interiors, interior 0 being the first one and referring to the normal GTA world.</p>
16
+
17
+
<p>The camera's interior is updated when:</p>
18
+
<ul>
19
+
<li>The local player joins the server (set to 0)</li>
20
+
<li><ahref="/reference/resetMapInfo/">resetMapInfo</a> is called (set to 0)</li>
21
+
<li>The local player spawns (set to the player's interior)</li>
22
+
<li><ahref="/reference/setElementInterior/">setElementInterior</a> is called</li>
23
+
</ul>
24
+
25
+
<h3>Uses</h3>
26
+
<p>To allow a player to enter an interior, you should use the <ahref="/reference/setElementInterior/">setElementInterior</a> function on the player you wish to move. You can also use this function on other elements, for example to make a vehicle or object appear in the interior.</p>
27
+
28
+
<h3>Dimensions</h3>
29
+
<p>The original GTA interiors are reused in a number of places throughout the game - e.g. each fast food restaurant interior is used many times. <ahref="/reference/Dimension/">Dimensions</a> are a feature that was added to MTA to solve this problem. You can allocate each instance of the interior a separate dimension which will mean that the players in each dimension won't be able to see each other or interact with each other. This will mean that the interiors appear to be entirely separate, despite physically being in the same place.</p>
0 commit comments