01C6

From GTAMods Wiki
Revision as of 02:13, 4 December 2016 by Spaceeinstein (talk | contribs) (code snippet)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GTA III DONT_REMOVE_CAR


Description
Removes the vehicle from the mission cleanup list
Syntax
01C6: remove_car_from_mission_cleanup_list [car handle]
Parameter
[car handle]
The handle of the vehicle

When a vehicle is created inside a mission launched through opcode 0417 (and 00D7 in GTA III and Vice City), it is added to the mission cleanup list so that calling opcode 00D8 (mission cleanup) marks the vehicle as no longer needed. This opcode prevents that from happening by removing it from the list.

For Vice City

This opcode does not exist in Vice City but the functionality remains in the game. The following example, using Sanny Builder with CLEO for Vice City and tested on US v1.0, should work similarly to this opcode. Place this at the end of the file:

:opcode_01C6
// 0@ - input param (car handle)
05E3: call_method 0x4518E0 0x97F060 num_params 2 pop 0 type 1 handle 0@  // CMissionCleanup::RemoveEntityFromList
05F6: ret 0

Use this line as a substitute for opcode 01C6:

05F5: call_scm_func @opcode_01C6 inputs 1 car_handle [car handle]

Keywords

dont, remove, car, vehicle, mission, cleanup

See also

  • GTA III Vice City San Andreas 01C5, for characters
  • GTA III Vice City San Andreas 01C7, for objects