Workshop.codes
Create

Start Rule Last updated November 26, 2024

Description

Begins simultaneous execution of a Subroutine rule (which is a rule with a Subroutine event type). Execution of the original rule continues uninterrupted. The subroutine will have access to the same contextual values (such as Event Player) as the original rule.

Snippet

Start Rule(SubroutineName, RESTART RULE);

Properties

Returns: Void
Parameters: Subroutine, If ALREADY EXECUTING

Subroutine
Type: Subroutine, Default: Sub0
Specifies which subroutine to start. If a rule with a subroutine event type specifies the same subroutine, then it will execute. Otherwise, this action is ignored.

If ALREADY EXECUTING
Type: AsyncBehavior, Default: RESTART RULE
Determines what should happen if the rule specified by the subroutine is already executing on the same player or global entity.

Workshop.codes