User Tools

Site Tools


modding:function:typincdata

Discuss this page on this pages TalkPage

typIncData

Syntax (typIncData unid attrib [increment])
Arguments unid: the unid of the type you want to increment data on
attrib: the data that you want to increment
increment: the value to add to the data
Returns new value
Category type, unid
Description Use to increment data on a type.

Example

(typIncData typeUnid 'shipCounter 10)

Increases the data field “shipCounter” on the type by 10.

Return to type functions list

Return to Functions list

modding/function/typincdata.txt · Last modified: 2017/01/20 04:36 by xephyr