Difference between revisions of "01C2"
Line 1: | Line 1: | ||
− | {{Icon| | + | {{Icon|t}} '''MARK_CHAR_AS_NO_LONGER_NEEDED''' |
<hr /> | <hr /> | ||
'''Description''' | '''Description''' | ||
Line 11: | Line 11: | ||
: [[MARK_CHAR_AS_NO_LONGER_NEEDED]] | : [[MARK_CHAR_AS_NO_LONGER_NEEDED]] | ||
− | This opcode marks the character as no longer needed and turns it into a random ped. If the character is spawned ([[009A]], etc.) or grabbed from the | + | This opcode marks the character as no longer needed and turns it into a random ped. If the 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]], ending the mission triggers a [[00D8|cleanup routine]] that 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, the script will continue to recognize the character until the character disappears. |
== Keywords == | == Keywords == | ||
Line 17: | Line 17: | ||
== See also == | == See also == | ||
− | *[[01C3]], for vehicles | + | * {{Icon|t}} [[01C3]], for vehicles |
− | *[[01C4]], for objects | + | * {{Icon|t}} [[01C4]], for objects |
[[Category:OpCodes]] | [[Category:OpCodes]] |
Revision as of 07:48, 6 December 2015
Description
- Marks the character as no longer needed
Syntax
- 01C2: remove_references_to_actor [char handle]
Parameter
- [char handle]
- The handle of the character
Native analog
This opcode marks the character as no longer needed and turns it into a random ped. If the 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, ending the mission triggers a cleanup routine that 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, the script will continue to recognize the character until the character disappears.
Keywords
remove, reference, references, actor, character