Difference between revisions of "00D7"

From GTAMods Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>00D7=1,%1p%</code><br>
+
{{OpCode
'''Description''': Creates a new thread<br>
+
| games      = {{Icon|t}}
'''Parameter 1''': Label<br>
+
| command    = LAUNCH_MISSION
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| description = Starts a [[Create a script|new script]]
 +
| syntax1    = 00D7: create_thread [''label'']
 +
| p1t        = [''label'']
 +
| p1d        = The position in the script it will go to, usually identified by a [[label]]
 +
}}
  
This opcode creates a new [[thread]]. It begins an execution from the place marked by the label passed as the parameter. This opcode works the same as [[004F]] except that it has only one parameter, without extra ones.<br>
+
This opcode starts a new script and begins an execution from the label. It works similar to [[004F]] except that it has only one parameter, without extra ones. In GTA III and Vice City, scripts started with this opcode behave like [[Create a mission|missions]] and can use opcode [[00D8]] within the script; it does not work in San Andreas.
  
==Keywords==
+
== Keywords ==
thread, create
+
create, start, thread, script, launch, mission
  
[[Category:OpCodes]]
+
== See also ==
 +
* [[Create a script]]
 +
* [[Create a mission]]
 +
* {{Icon|t}} [[004F]], starts a new script with parameters
 +
* {{Icon|t}} [[0417]], launches a mission
 +
* {{Icon|t}} [[0A92]], starts a new [[CLEO]] script

Latest revision as of 06:30, 27 January 2016

GTA III Vice City San Andreas LAUNCH_MISSION


Description
Starts a new script
Syntax
00D7: create_thread [label]
Parameter
[label]
The position in the script it will go to, usually identified by a label

This opcode starts a new script and begins an execution from the label. It works similar to 004F except that it has only one parameter, without extra ones. In GTA III and Vice City, scripts started with this opcode behave like missions and can use opcode 00D8 within the script; it does not work in San Andreas.

Keywords

create, start, thread, script, launch, mission

See also