Difference between revisions of "01C2"

From GTAMods Wiki
Jump to navigation Jump to search
 
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>01C2=1,%1d%</code><br>
+
{{Icon|t}} '''MARK_<wbr>CHAR_<wbr>AS_<wbr>NO_<wbr>LONGER_<wbr>NEEDED'''
'''Description''': Removes references to an actor<br>
+
<hr />
'''Parameter 1''': Actor ID<br>
+
'''Description'''
'''Supports''': GTA3, Vice City, San Andreas<br>
+
: Marks the character as no longer needed
 +
'''Syntax'''
 +
: 01C2: mark_actor_as_no_longer_needed [''char handle'']
 +
'''Parameter'''
 +
: [''char handle'']
 +
:: The handle of the character
 +
'''Native analog'''
 +
: [[MARK_CHAR_AS_NO_LONGER_NEEDED]]
  
This opcode will make the actor into a random ped. The code will no longer recognize the actor as part of the code. If you want the actor to disappear after it dies or after you are finished with it, use this opcode to make it into a random ped so it will disappear like a random ped.<br>
+
This opcode marks the character as no longer needed by the script and turns it into a random ped. When a character is spawned ([[009A]], etc.) or grabbed from the world ([[02DD]], etc.), the character will remain in the game without despawning until this opcode is called or the game is reloaded. If spawned during a [[Create a mission|mission]], calling the [[00D8|mission cleanup routine]] automatically marks any characters spawned during the mission as no longer needed. When the character is marked no longer needed, the character will walk off like a regular pedestrian and will disappear off-screen. However, as long as the character remains on-screen, the script can continue to recognize the character until it disappears. Alternative documentation names this opcode as "remove references to actor".
  
==Keywords==
+
== Keywords ==
remove, reference, references, actor
+
mark, remove, reference, references, actor, character, no, longer, needed
 +
 
 +
== See also ==
 +
* {{Icon|t}} [[01C3]], for vehicles
 +
* {{Icon|t}} [[01C4]], for objects
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 16:26, 6 December 2015

GTA III Vice City San Andreas MARK_CHAR_AS_NO_LONGER_NEEDED


Description

Marks the character as no longer needed

Syntax

01C2: mark_actor_as_no_longer_needed [char handle]

Parameter

[char handle]
The handle of the character

Native analog

MARK_CHAR_AS_NO_LONGER_NEEDED

This opcode marks the character as no longer needed by the script and turns it into a random ped. When a character is spawned (009A, etc.) or grabbed from the world (02DD, etc.), the character will remain in the game without despawning until this opcode is called or the game is reloaded. If spawned during a mission, calling the mission cleanup routine automatically marks any characters spawned during the mission as no longer needed. When the character is marked no longer needed, the character will walk off like a regular pedestrian and will disappear off-screen. However, as long as the character remains on-screen, the script can continue to recognize the character until it disappears. Alternative documentation names this opcode as "remove references to actor".

Keywords

mark, remove, reference, references, actor, character, no, longer, needed

See also

  • GTA III Vice City San Andreas 01C3, for vehicles
  • GTA III Vice City San Andreas 01C4, for objects