Difference between revisions of "0459"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>0459=1,%1s%</code><br>
+
{{OpCode
'''Description''': Ends the thread<br>
+
| games      = {{Icon|t}}
'''Parameter 1''': String<br>
+
| command    = TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| description = Ends all [[script]]s with this name
 +
| syntax1    = 0459: end_thread_named '[''string'']'
 +
| syntax2    = end_thread_named '[''string'']'
 +
| p1t        = [''string'']
 +
| p1d        = 7-character [[03A4|name]]
 +
| native      = [[TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME]]
 +
}}
  
This opcode stops the execution of the thread named by [[03A4]] same as the passed string parameter. If there are a few threads having such a name, all of them will be ended.
+
This opcode stops the execution of all [[script]]s with this name. Scripts can be named through opcode [[03A4]] and more than one scripts can have the same name. Any upper case letters (A-Z) are converted to lower case by the game internally. This opcode was never called in the [[Main.scm|original script]] of GTA III.
  
==Keywords==
+
== Keywords ==
thread, end
+
thread, script, end, terminate, name
  
[[Category:OpCodes]]
+
== See also ==
 +
* {{Icon|t}} [[004E]], ends this script

Latest revision as of 01:49, 6 December 2016

GTA III Vice City San Andreas TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME


Description
Ends all scripts with this name
Syntax
0459: end_thread_named '[string]'
end_thread_named '[string]'
Parameter
[string]
7-character name
Native analog
TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME

This opcode stops the execution of all scripts with this name. Scripts can be named through opcode 03A4 and more than one scripts can have the same name. Any upper case letters (A-Z) are converted to lower case by the game internally. This opcode was never called in the original script of GTA III.

Keywords

thread, script, end, terminate, name

See also

  • GTA III Vice City San Andreas 004E, ends this script