01C2
Jump to navigation
Jump to search
{{{games}}}
- Description
- Removes references to an actor
- Syntax
- {{{syntax1}}}
- Parameter
- Native analog
- MARK_CHAR_AS_NO_LONGER_NEEDED
This opcode will mark the character as no longer needed and turn it into a random ped. The character will no longer be recognized as part of the code. If you want your character 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. This opcode is only needed when the character is spawned (009A, etc.) or grabbed from the streets (02DD, etc.). This opcode is not needed for any other cases. Using this with disregard will cause problems with other scripts trying to recognize the same character.
Sanny Builder Example
01C2: remove_references_to_actor 2@ // Like turning an actor into a random pedestrian
Keywords
remove, reference, references, actor, character