Difference between revisions of "00D7"

From GTAMods Wiki
Jump to navigation Jump to search
(new template)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''LAUNCH_MISSION'''
| ini        = 00D7=1,%1p%
+
<hr />
| description = Creates a new thread
+
'''Description'''
| p1          = [[Label]]
+
: Starts a new script
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
'''Syntax'''
}}
+
: 00D7: create_thread [''offset'']
This opcode creates a new [[thread]]. It begins an execution from the place marked by the label passed as the parameter. This opcode works similar to [[004F]] except that it has only one parameter, without extra ones. Threads created with this opcode can use [[00D8]] within the thread.
+
'''Parameter'''
 +
: ''offset''
 +
:: The position in the [[main.scm]] from where the script is started, usually identified by a [[label]]  
  
==Keywords==
+
This opcode starts a new [[script]]. It begins an execution from the offset passed as the parameter, usually a label. This opcode works similar to [[004F]] except that it has only one parameter, without extra ones. Scripts started with this opcode can use [[00D8]] within the script.
thread, create
+
 
 +
==See also==
 +
* [[004F]] &ndash; starts a new script with parameters
 +
* [[0417]] &ndash; launches a mission
 +
* [[0A92]] &ndash; starts a new [[CLEO]] script
 +
* [[Create a thread]]
 +
 
 +
[[Category:OpCodes]]

Revision as of 12:55, 24 June 2015

GTA III Vice City San Andreas LAUNCH_MISSION


Description

Starts a new script

Syntax

00D7: create_thread [offset]

Parameter

offset
The position in the main.scm from where the script is started, usually identified by a label

This opcode starts a new script. It begins an execution from the offset passed as the parameter, usually a label. This opcode works similar to 004F except that it has only one parameter, without extra ones. Scripts started with this opcode can use 00D8 within the script.

See also