Thread_create_script - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Creates a new thread that will execute the given script passing the given arguments. The thread will need to be manually started with thread_start.

Parameters

Parameter Data Type Description
ind integer index of the script
arg0-arg15 variant argument value

Return Values

integer: Returns the index of the new thread.

Example Call

// demonstrates threading an asynchronous message script
var thread;
thread = thread_create_script(scr_asynch_message, "Hello, world!");
thread_start(thread);

NOTOC