DarkLink Posted June 12, 2011 Share 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. Link to comment
SDK Posted June 12, 2011 Share Posted June 12, 2011 Use getElementByID: https://wiki.multitheftauto.com/wiki/GetElementByID Link to comment
DarkLink Posted June 12, 2011 Author Share 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? Link to comment
DarkLink Posted June 12, 2011 Author Share Posted June 12, 2011 okay thanks alot dude bb Link to comment
Jaysds1 Posted June 12, 2011 Share 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. Link to comment
Castillo Posted June 13, 2011 Share 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 Link to comment
DarkLink Posted June 13, 2011 Author Share 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 Link to comment
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