Difference between revisions of "00D7"

From GTAMods Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Icon|trilogy}} '''LAUNCH_MISSION'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = LAUNCH_MISSION
: Starts a new script
+
| description = Starts a [[Create a script|new script]]
'''Syntax'''
+
| syntax1    = 00D7: create_thread [''label'']
: 00D7: create_thread [''offset'']
+
| p1t        = [''label'']
'''Parameter'''
+
| p1d        = The position in the script it will go to, usually identified by a [[label]]
: ''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. In GTA III and Vice City scripts started with this opcode can use [[00D8]] within the script, it won't work in San Andreas.
+
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.
  
==See also==
+
== Keywords ==
* [[004F]] &ndash; starts a new script with parameters
+
create, start, thread, script, launch, mission
* [[0417]] &ndash; launches a mission
 
* [[0A92]] &ndash; starts a new [[CLEO]] script
 
* [[Create a thread]]
 
  
[[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