Discuss this page on this page's [[itmSetDamaged Talk Page|Talk Page]] === itmSetDamaged === See [[http://xelerus.de/index.php?s=functions&function=315|itmSetDamaged at Xelerus]] ^ Syntax | (itmSetDamaged itemStruct [boolean]) -> itemStruct | ^ Arguments | itemStruct: The item you want to create a damaged or undamaged version of. | ^ | boolean: An optional argument that if true makes the returned item damaged and if not makes it undamaged. | ^ Returns | itemStruct: The created item. Will be the same as the original item except will be damaged or not depending on the boolean. | ^ Category | [[0.99 functions|0.99]], [[item functions|item]], [[repair & damage functions|repair & damage]] | ^ Description | Creates a new item that is a copy of the passed in item except whether or not it is damaged. That is determined by the passed in boolean. | === Example === TODO Return to [[:Functions]] list