ScriptEvent:setState

From Mod Wiki

Parameters

string name -- Name of the function to switching execution to.

Result

None.

Supported By

sdVehicleWeapon
sdClientScriptEntity
idProjectile
sdScriptEntity
idActor

Comments

  • The function must be on the same script object.
  • An error will be thrown if the function does not exist.

Functionality

Terminates the current execution path, and moves execution to a different function.