Functions Documentation |
|
Name |
itmSetData |
Syntax |
(itmSetData item attrib data [count]) -> item |
Argument List |
item: the itemStruct to store data in
attrib: the key to set the data for
data: The data to be set on the item
[count]: the amount of items to set the data on |
Returns |
item: the new item with the data on it |
Category |
item
|
Description |
Allows for the storage of data on items. |
Example |
(setq itm (itmCreate &itLaserCannon; 1))
(itmSetData itm "SomeKey" "SomeValue")
|
Comment |
Useful for keeping track of specific values that are related to an item, for example, how many times it has been used. If you need to set data on an item stored on an object, you might consider using objSetItemData instead. |