DonPro Posted December 15, 2014 Posted December 15, 2014 hi, i wondering how i can set a map into deminsion?
Ahmed Abo-elezz Posted December 15, 2014 Posted December 15, 2014 are you mean full map or just some objects? My skype: ahmed.abouellezz My FB page: http://www.facebook.com/Capt.ahmed1
DonPro Posted December 15, 2014 Author Posted December 15, 2014 are you mean full map or just some objects? full map
Ahmed Abo-elezz Posted December 15, 2014 Posted December 15, 2014 see it :https://www.youtube.com/watch?v=7p1v_MG1T28 My skype: ahmed.abouellezz My FB page: http://www.facebook.com/Capt.ahmed1
DonPro Posted December 16, 2014 Author Posted December 16, 2014 see it :https://www.youtube.com/watch?v=7p1v_MG1T28 When you mean just some objects, will that mean i can use dimension 0 as my orginal map and place objects in dimension and still can see the objects in Dimension 0?
Moderators IIYAMA Posted April 10, 2015 Moderators Posted April 10, 2015 I am not sure what you want. If you want just move a single map to another dimension. Open your .map file in your notepad++ and replace all dimension lines (ctrl+f). Or: You want to move all objects to your dimension? Try this: Client local lastDimension = getElementDimension(localPlayer) local thisResource = getThisResource ( ) addEventHandler("onResourceStart",root, function (res) local objects = thisResource == res and getElementsByType("object") or getElementsByType("object",source) -- source = resourceRoot of that resource. if objects and #objects > 0 then local dimension = getElementDimension(localPlayer) for i=1,#objects do setElementDimension(objects,dimension) end end end) setTimer (function () local dimension = getElementDimension(localPlayer) if dimension ~= lastDimension then lastDimension = dimension local objects = getElementsByType("object") for i=1,#objects do setElementDimension(objects,dimension) end end end,100,1) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now