GENERATE/PREV.gifGENERATE/NEXT.gif

Assignment to Accessors

It was mentioned in the Assignment topic that you can assign a value or an expression to accessors in addition to variables. The <property> and <array-index> destinations allow you to assign new values to any component that you can specify with an accessor expression.

Examples:

table[i] = 0

$box01.pos = [0,0,100]

objects[n + 1].target.pos.y = 42.3

(get_target obj1).name = "fred"