changevarchild
The changevarchild command is used to change a variable that is used by the object's parent.



"then(changevarchild, child, variable, method of change, value)"


Argument Function
child The child that is being modified.
variable The child's stored variable that is being changed. (Must be initalized previously!)
method of change The method in which the variable is being changed. (+, -, =, *, /)
value The change that is occuring.



And example of the changevarchild command used in a script is as follows...




The following script tells object's children to turn on when the object takes damage.


if(takedamage)
{
then(changevarchild,slot_1,on,=,1)
then(changevarchild,slot_2,on,=,1)
then(changevarchild,slot_3,on,=,1)
}