Note: This PRState documentation is out-dated and is for an older (pre-GMS v2.3) version of PRState. For the most up-to-date docs on the latest version of PRState, please refer to this page as well as the documentation included in the PRState package.
Adds a new state to an object.
PRStateAdd(obj, stateName, script, optionalValidFromStates) 
The object to add the new state to.
The name of the state to add.
The script that will be called to handle the state.
Array of state names that are valid from states (optional.)
n/a