Base Functions

Toggle Type

<void> api:Toggle(<string> Type)

Toggles the specified Type. Only works on types with an Enabled option.

Get Option Value

<variant> api:Get(<string> Type, <string> Option)

Returns the specified Option's value.

Set Option Value

<void> api:Set(<string> Type, <string> Option, <variant> Value)

Sets the specified Option's value to Value.

Set Function

<void> api:SetFunction(<string> Function, <function> NewFunction)

Replaces the script's Function with NewFunction.

Reset Function

<void> api:ResetFunction(<string> Function)

Resets the script's Function to the original function.

Destroy

<void> api:Destroy(<void>)

Removes all drawing objects and stops the script.

Version

<string> api.Version

A string that specifies the script's version.

Last updated