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



"then(changevarparent,variable, method of change, value)"


Argument Function
variable The 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 changevarparent command used in a script is as follows...




The following script tells object's parent to create a new child when the block is destroyed.


if(destroyed)
{
then(changevarparent,canspawn,=,1)
}