Difference between revisions of "0459"

From GTAMods Wiki
Jump to navigation Jump to search
(works in iii)
(page updates)
Line 1: Line 1:
{{OpCode
+
{{Icon|t}} '''TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME'''
| ini        = 0459=1,%1s%
+
<hr />
| description = Ends the named [[thread]]
+
'''Description'''
| p1          = Thread name
+
: Ends a named [[thread|script]]
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
'''Syntax'''
| native      = [[TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME]]
+
: 0459: end_thread_named '[''string'']'
}}
+
: end_thread_named '[''string'']'
This opcode stops the execution of the thread [[03A4|named]] same as the passed string parameter. If there are other threads with the same name, all of them will be ended.
+
'''Parameter'''
 +
: [''string'']
 +
:: 7-character string
 +
'''Native analog'''
 +
: [[TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME]]
  
==Keywords==
+
This opcode stops the execution of a [[thread|script]] by its name. Scripts can be named through opcode [[03A4]]. Any upper case letters (A-Z) are converted to lower case by the game internally. If there are other scripts with the same name, all of them will be ended. This opcode was never called in the [[Main.scm|original script]] of GTA III.
thread, script, end, terminate
+
 
 +
== Keywords ==
 +
thread, script, end, terminate, name
 +
 
 +
[[Category:OpCodes]]

Revision as of 06:47, 22 July 2015

GTA III Vice City San Andreas TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME


Description

Ends a named script

Syntax

0459: end_thread_named '[string]'
end_thread_named '[string]'

Parameter

[string]
7-character string

Native analog

TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME

This opcode stops the execution of a script by its name. Scripts can be named through opcode 03A4. Any upper case letters (A-Z) are converted to lower case by the game internally. If there are other scripts with the same name, all of them will be ended. This opcode was never called in the original script of GTA III.

Keywords

thread, script, end, terminate, name