Difference between revisions of "01C2"

From GTAMods Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
| native      = [[MARK_CHAR_AS_NO_LONGER_NEEDED]]
 
| native      = [[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.
 
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==
 +
<source lang="scm">01C2: remove_references_to_actor 2@ // Like turning an actor into a random pedestrian</source>
  
 
==Keywords==
 
==Keywords==
 
remove, reference, references, actor, character
 
remove, reference, references, actor, character

Revision as of 14:39, 19 December 2010

{{{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