- Marks the object as no longer needed
- 01C4: mark_object_as_no_longer_needed [object handle]
- [object handle]
- The handle of the object
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".
mark, remove, cleanup, reference, references, object, no, longer, needed