dam034 Posted September 12, 2013 Posted September 12, 2013 Hi, in the game I found 5 S.A.M. launchers, I want to select them by id in a LUA variable and set them unbreakable. How can I do? Thanks dam034 I'm developing a revolution for MTASA
nic062 Posted September 12, 2013 Posted September 12, 2013 SetObjectBreakable Si toi aussi tu veux participer à notre aventure de Roleplay avec MTA viens faire un tour sur http://fox-rp.eu
DiSaMe Posted September 12, 2013 Posted September 12, 2013 Nic062, setObjectBreakable does not do what he wants (getting element from ID) getElementByID -
dam034 Posted September 13, 2013 Author Posted September 13, 2013 About getElementByID(), the wiki tells: "Note: The ID in this context is the value of the 'id' data item of the element (the id=".." attribute in the .map file), NOT the model ID, weapon ID or similiar." I need to select in a variable all the objects which have a model ID specified by me. Thanks dam034 I'm developing a revolution for MTASA
myonlake Posted September 13, 2013 Posted September 13, 2013 You cannot modify the elements that are within the game world. You can only delete them and their LOD elements. If I helped you, please click the like button on the right Thanks!
dam034 Posted September 13, 2013 Author Posted September 13, 2013 But at least to select them? dam034 I'm developing a revolution for MTASA
Moderators IIYAMA Posted September 13, 2013 Moderators Posted September 13, 2013 You have to create them, before you can use them. createObject or use the editor* 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