User Tools

Site Tools


modding:function:itmsetdamaged

Discuss this page on this page's Talk Page

itmSetDamaged

See 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, item, 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

modding/function/itmsetdamaged.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1