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
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
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.
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*
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