Jump to content

Element for all dimensions


Dreft

Recommended Posts

Posted
Well, thats not smart cause it exists 65535 dimensions, but heres your example.

https://wiki.multitheftauto.com/wiki/Dimension

local object = createObject(blablablabla [...])
for dimensionKey, 65535 do
setElementDimension (object, dimensionKey )
end

This doesn't work. This loops set dimension to:

object = 1 then object = 2, not 1.

After that object = 3, not 2

And at the end object = 65534, so if I won't be in 65534 dimension, i won't see it.

Posted

Ah now i know what you exactly mean

btw. dimensionKey was the startvalue, it should be starting with 1 or 0.

I cant find a function for this right now, but it should be possible if you create the Element/Object in every Dimension

Startdimensions = 0
 
for dimensionKey = Startdimensions, 65535 do
object = createObject(blablablabla [...])
setElementDimension (object, dimensionKey )
end

And this Loop does not stop at 65535.

For what do you need a Element for all dimensions ?

Sounds stupid for meh :roll:

Stats_Signature.php?name=Jason_Gregory
Contact me if you need a Website / Signature ↑ / Mapuploadsystem

(HTML5, JS, PHP, ASP.NET, MySQL / Sybase)

Posted

your server is that big that you use 65k dimensions? :D

hope you have like .. 650k players online, (10 per dimension) :P

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
your server is that big that you use 65k dimensions? :D

hope you have like .. 650k players online, (10 per dimension) :P

I wana see his CPU while creating Maps for all 65k dimensions :)

My Console needs ~30 Seconds for printing all Dimensions on a Quad Core Q8300 / 4 GB

Stats_Signature.php?name=Jason_Gregory
Contact me if you need a Website / Signature ↑ / Mapuploadsystem

(HTML5, JS, PHP, ASP.NET, MySQL / Sybase)

Posted

No I'm not making it for 65k dimensions.. I just asked "for all possible" because I thought that there is some way without adding element > setting dimension > adding another element > setting dimension and so on.

Thx for help.

Posted

Server:

object = createObject(...)
setElementID(object,"alldim")

Client:

object = getElementByID("alldim")
addEventHandler("onClientRender",getRootElement(),
function()
setElementDimension(object,getElementDimension(getLocalPlayer()))
end
)

If you want to make this work with multiple objects, you can create an abstract element and make it a parent of objects.

-

Posted

Doomed_Space_Marine 's idea is very good one :)

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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...