Functions Documentation
View Function Edit Function
Name itmSetDamaged
Syntax (itmSetDamaged itemStruct [boolean])
Argument List 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 repair/damage, item, 0.99
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
Comment This does nothing to the original item it only creates a new item with the wanted characteristics.