Skip to content

Thread_create_script

hpgDesigns edited this page Aug 8, 2021 · 1 revision

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

This is number 1

Clone this wiki locally