The changevar command is used to change a local variable that is used by the object.
"then(changevar,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 changevar command used in a script is as follows...
The following script checks if the the state is 0, and if the player is withing 64 units, the state changes to 1.
if(proximity,player,64)
if(compare,state,=,0)
{
then(changevar,state,=,1)
}
|
|