Jump to content

Set an element visible to all dimensions


launemax

Recommended Posts

Hy there!

Is there a way to set an element be visible in all dimensions?

For instance an object in a house interior. I use this interior with different dimensions, so I can use it for more than one player's flat.

I mapped in this interior some additional objects, but they are only visible in dimension one.

Can anybody help me?

Thanks :)

Link to comment
  • Moderators
Just set its dimension different when player enters -_-

... he wants objects to be visible in multiple dimensions ... not an object following one player's dimension ... :roll:

@launemax: as Saml1er you need to duplicate those objects and set a new dimension on them (I guess you should make a function to load your mapping and duplicate everything with a different dimension)

Link to comment

Creating more objects will use more ram.... So it will be better to create those objects client side and set their dimension to player's dimension.

  
_dim = setElementDimension 
function setElementDimension (elem,d) 
if elem and d and getElementType (elem ) == 'player' then 
for _, v in ipairs ( getElementsByType("object") ) do 
_dim (v,d) 
 end 
return _dim(elem,d) 
     end 
          end 

All you need to do is to put this code in your resource where you are changing player dimension. If you are doing this in freeroam resource then you must put this code in freeroam resource.

EDIT: This is TiM3's solution.

Link to comment

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.
×
×
  • Create New...