Description
This function adds a new SCRIPT task definition during runtime.
Signature
nxa.AddScriptTask (string, string, bool, bool, bool, number, string, number)
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
string | M | sourceItemID | |
string | M | destinationItemID | |
bool | M | corresponds to the OnReceive parameter of the task definition (cf. Section 4.5.2) | |
bool | M | corresponds to the OnSend parameter of the task definition (cf. Section 4.5.2) | |
bool | M | corresponds to the OnSet parameter of the task definition (cf. Section 4.5.2) | |
number | M | time interval in milliseconds that the task will be delayed when triggered | |
string | M | LUA script name that will be executed when the task is triggered | |
number | M | (optional) ModuleID. Needs to be > 5000. Can be referenced in the nxa.RemoveScriptTask function. |
Return
None.