DCPSHER Posted June 18, 2017 Share Posted June 18, 2017 Hello! I'm just a newbee in MTA, now I'm learning the wiki. I've found the function SetElementDimension with description for the argument Dimension: "You can also use -1 to make the element visible in all dimensions (only valid to objects)." So, I have a question, why only for the objects? Why not for peds(players) and vehicles? So, it would be cool to have a dimension that everyone will see but won't see each other, like if two players would be in one apartments, but in two different dimensions(eg. 1 and 2), so they wouldn't see each other, like they are in two different apartments, but they would be able to see everything that happens in the street(-1 dimension), cars, walking peds and so on. At least, it seems to be cool :) If I'm not mistaken, the apartments in GTA Online works this way. 2 Link to comment
Administrators Lpsd Posted June 20, 2017 Administrators Share Posted June 20, 2017 Why would you need to do it that way? Just ensure different dimensions for each player when in a house, and same dimension for all when outside. Link to comment
DCPSHER Posted June 20, 2017 Author Share Posted June 20, 2017 52 minutes ago, LopSided_ said: Why would you need to do it that way? Just ensure different dimensions for each player when in a house, and same dimension for all when outside. But how would players being inside see the players that are outside? If they are in different dimensions. 1 Link to comment
Captain Cody Posted June 20, 2017 Share Posted June 20, 2017 What he's saying is, he wants to have the exterior players in all dimensions, but the interior players in their own dimensions; I actually quite like this idea. Link to comment
DCPSHER Posted June 21, 2017 Author Share Posted June 21, 2017 4 hours ago, CodyJ(L) said: What he's saying is, he wants to have the exterior players in all dimensions, but the interior players in their own dimensions; I actually quite like this idea. Yep, right this way. The main thing is it doesn't seem to be difficult implemented. It looks like just changing some properties on the level of entities' streaming. But maybe, of course, I do imagine it incorrectly. Link to comment
Captain Cody Posted June 21, 2017 Share Posted June 21, 2017 Can be done client side set all of the exterior players to your dimension client side. Link to comment
DCPSHER Posted June 22, 2017 Author Share Posted June 22, 2017 6 hours ago, CodyJ(L) said: Can be done client side set all of the exterior players to your dimension client side. Oh really? Should try it ASAP. Previously I had been working only with SAMP where everything is controlled only server-side, so I didn't reflect that it's possible to change dimensions of everyone for the current player. It's very interesting. BTW, maybe the developers will decide to implement it in the way I suggested Thank you very much, CodyJ(L) Link to comment
M0U Posted January 7, 2019 Share Posted January 7, 2019 <object id="object (int2Hoose2) (2)" breakable="true" interior="1" collisions="true" alpha="255" model="14701" doublesided="false" scale="1" dimension="50" posX="1451.3" posY="-34.5" posZ="1002.1" rotX="0" rotY="0" rotZ="0"></object> Can you please make this code for all dimensions? it works in dimension 50 only and if i put "-1" it doesn't work Link to comment
qaisjp Posted April 26, 2019 Share Posted April 26, 2019 On 21/06/2017 at 00:45, CodyJ(L) said: What he's saying is, he wants to have the exterior players in all dimensions, but the interior players in their own dimensions; I actually quite like this idea. I like this idea as well. Copied to https://github.com/multitheftauto/mtasa-blue/issues/890. Link to comment
Deihim007 Posted April 26, 2019 Share Posted April 26, 2019 The thing is, you wrote interior="1", which if you change it to "0" and ofc your dimension to "-1", the object will be visible in all dimensions. On 07/01/2019 at 18:13, M0U said: <object id="object (int2Hoose2) (2)" breakable="true" interior="1" collisions="true" alpha="255" model="14701" doublesided="false" scale="1" dimension="50" posX="1451.3" posY="-34.5" posZ="1002.1" rotX="0" rotY="0" rotZ="0"></object> Can you please make this code for all dimensions? it works in dimension 50 only and if i put "-1" it doesn't work Link to comment
Captain Cody Posted April 26, 2019 Share Posted April 26, 2019 Looking back at this my grammar there sucks, and no. What I was thinking at the time (Which is completely different from what I wrote) was setting players to the dimension of the current player client side, this however would cause de-syncs. So either way it's wrong. Link to comment
Recommended Posts