DCPSHER

-1 dimension for everything

Recommended Posts

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.

  • Like 2

Share this post


Link to post

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.

Share this post


Link to post
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. 

  • Like 1

Share this post


Link to post

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.

Share this post


Link to post
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. 

Share this post


Link to post

Can be done client side set all of the exterior players to your dimension client side.

Share this post


Link to post
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)

Share this post


Link to post


    <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

Share this post


Link to post

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

 

Share this post


Link to post

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.