DarkLink Posted June 12, 2011 Posted June 12, 2011 Hi guys, i have one question. Is it possible to get those elements created in map files (map editor) to .lua script ? My script need to get those elements.. so i dont need to change the .lua for every map, and people can make many maps for my gamemode.. But how to get elements from .map files and manage them in .lua scripts ? thanks.
SDK Posted June 12, 2011 Posted June 12, 2011 Use getElementByID: https://wiki.multitheftauto.com/wiki/GetElementByID
DarkLink Posted June 12, 2011 Author Posted June 12, 2011 Thanks SDK, so that is the function they use for assault gamemode ? People place objective on map editor (costum element), and then the script use that function to receive it. right?
Jaysds1 Posted June 12, 2011 Posted June 12, 2011 Thanks SDK, so that is the function they use for assault gamemode ? People place objective on map editor (costum element), and then the script use that function to receive it. right? Yes, and getElementsByType. okay thanks alot dude bb Darklink, Instead of posting more why didn't you use the "Edit" button and add all the post in there.
Castillo Posted June 13, 2011 Posted June 13, 2011 (edited) Jaysd1, your post it's off topic, not his, he just said 'thanks' to eAi, so, if you could stop posting useless stuff it would be just great. Edited June 13, 2011 by Guest
DarkLink Posted June 13, 2011 Author Posted June 13, 2011 Jaysd1, your post it's off topic, not his, he just said 'thanks' to eAi, so, if you could stop posting useless stuff it would be jsut great. Come on guys, u are off-toping too :b (and me also) But Jay is a nice guy, dont say that Thanks both
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