Difference between revisions of "01C4"
Jump to navigation
Jump to search
(Created page with "{{Icon|t}} '''MARK_OBJECT_AS_NO_LONGER_NEEDED''' <hr /> '''Description''' : Marks the object as no longer needed '''Syntax''' : 01C4: remove_references_to_object [''object han...") |
m |
||
Line 1: | Line 1: | ||
− | {{Icon|t}} ''' | + | {{Icon|t}} '''MARK_<wbr>OBJECT_<wbr>AS_<wbr>NO_<wbr>LONGER_<wbr>NEEDED''' |
<hr /> | <hr /> | ||
'''Description''' | '''Description''' | ||
: Marks the object as no longer needed | : Marks the object as no longer needed | ||
'''Syntax''' | '''Syntax''' | ||
− | : 01C4: | + | : 01C4: mark_object_as_no_longer_needed [''object handle''] |
'''Parameter''' | '''Parameter''' | ||
: [''object handle''] | : [''object handle''] | ||
Line 11: | Line 11: | ||
: [[MARK_OBJECT_AS_NO_LONGER_NEEDED]] | : [[MARK_OBJECT_AS_NO_LONGER_NEEDED]] | ||
− | This opcode marks the object as no longer needed. When an object is spawned ([[0107]], etc.), the object will remain in the game without despawning until this opcode is called. If spawned during a [[Create a mission|mission]], | + | This opcode marks the object as no longer needed. When an object is spawned ([[0107]], etc.), the object will remain in the game without despawning until this opcode is called. If spawned during a [[Create a mission|mission]], calling the [[00D8|mission cleanup routine]] automatically marks any objects spawned during the mission as no longer needed. When the object is marked no longer needed, it will disappear off-screen. However, as long as the object remains on-screen, the script can continue to recognize the object until the object disappears. Alternative documentation names this opcode as "remove references to object". |
== Keywords == | == Keywords == | ||
− | remove, cleanup, reference, references, object | + | mark, remove, cleanup, reference, references, object, no, longer, needed |
== See also == | == See also == |
Latest revision as of 16:36, 6 December 2015
MARK_
Description
- Marks the object as no longer needed
Syntax
- 01C4: mark_object_as_no_longer_needed [object handle]
Parameter
- [object handle]
- The handle of the object
Native analog
This opcode marks the object as no longer needed. When an object is spawned (0107, etc.), the object will remain in the game without despawning until this opcode is called. If spawned during a mission, calling the mission cleanup routine automatically marks any objects spawned during the mission as no longer needed. When the object is marked no longer needed, it will disappear off-screen. However, as long as the object remains on-screen, the script can continue to recognize the object until the object disappears. Alternative documentation names this opcode as "remove references to object".
Keywords
mark, remove, cleanup, reference, references, object, no, longer, needed