dam034 Posted September 12, 2013 Share 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 Link to comment
DiSaMe Posted September 12, 2013 Share Posted September 12, 2013 Nic062, setObjectBreakable does not do what he wants (getting element from ID) getElementByID Link to comment
dam034 Posted September 13, 2013 Author Share 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 Link to comment
myonlake Posted September 13, 2013 Share Posted September 13, 2013 You cannot modify the elements that are within the game world. You can only delete them and their LOD elements. Link to comment
dam034 Posted September 13, 2013 Author Share Posted September 13, 2013 But at least to select them? Link to comment
Moderators IIYAMA Posted September 13, 2013 Moderators Share Posted September 13, 2013 You have to create them, before you can use them. createObject or use the editor* 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