Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

This function adds a new SCRIPT SCRIPT task definition during runtime.

Signature

nxa.AddScriptTask (string, string, bool, bool, bool, number, string, number)

Parameters

NameTypeMandatory/OptionalDescription
 stringMsourceItemID
 stringMdestinationItemID
 boolMcorresponds to the
OnReceive
OnReceive parameter of the task definition (cf. Section 4.5.2)
 boolMcorresponds to the
OnSend
OnSend parameter of the task definition (cf. Section 4.5.2)
 boolMcorresponds to the
OnSet
OnSet parameter of the task definition (cf. Section 4.5.2)
 numberMtime interval in milliseconds that the task will be delayed when triggered
 stringMLUA script name that will be executed when the task is triggered
 numberM(optional) ModuleID. Needs to be > 5000. Can be referenced in the nxa.RemoveScriptTask function.

Return

None.