GTAG - Modding - Opcode Database - 00D9
Opcode Database
00D9
| Description | Returns the current vehicle of the character and adds it to the mission cleanup list. It removes the last found vehicle from the mission cleanup list, if applicable. However, if the vehicle of the character is not found, the last found vehicle will be returned. This opcode also works in normal scripts, however a lot of code is based on missions, so it is better to use 03C0 or 0811 depending on the situation. |
|---|---|
| Parameters (v2) | 1) Actor handle (Integer) (INT) 2) (Returned) Vehicle handle (Integer) (INT) |
| Games | |
| Category | Actor, Common, Mission, Vehicle |
| Command Name (IV) | STORE_CAR_CHAR_IS_IN |
| San Andreas | |
| sascm.ini | 00D9=2,store_car_char_is_in %1d% store_to %2d% |
| Example | 00D9: store_car_char_is_in $PLAYER_ACTOR store_to 68@ |
| Command Name | STORE_CAR_CHAR_IS_IN |
| Vice City | |
| sascm.ini | 00D9=2,store_car_char_is_in %1d% store_to %2d% |
| Example | 00D9: store_car_char_is_in 0@ store_to $2816 |
| Command Name | STORE_CAR_CHAR_IS_IN |
| GTA III | |
| gtascm.ini | 00D9=2,store_car_char_is_in %1d% store_to %2d% |
| Example | 00D9: store_car_char_is_in $CRIMINAL_FOR_VIGILANTE store_to $VIGILANTE_CRIMINALS_CAR |
| Command Name | STORE_CAR_CHAR_IS_IN |

