Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The InState function checks if a particular function object is in the state with the given name:
 

Code Block
languagetext
InState(in object : any[1], in stateName : String[1]): Boolean[1]


Both arguments of the function are required. For example:

Code Block
languagetext
if (InState(ccobj, "Operating")) {
	force = ccForce;
} else {
	force = acc * 2;
}