- Sets the door lock status of the vehicle
- 0135: [int] = car [car handle] door_status
- [car handle]
- The handle of the vehicle
- Car lock
This opcode behaves exactly as opcode 020A.
This is disassembled code for this opcode from PC v1.0 US.
loc_43ED92: lea eax, [ebp+10h] ; get address of script's current instruction pointer mov ecx, ebp ; get address of script for thiscall push 2 ; push 2 for two parameters to collect push eax ; push address of script's current instruction pointer call CRunningScript::CollectParameters ; call CRunningScript::CollectParameters(uint *,short) mov eax, ds:ScriptParams ; get value of first parameter, the vehicle handle mov ecx, ds:CPools::ms_pVehiclePool ; get address of vehicle pool for thiscall push eax ; push vehicle handle call CPool_CVehicle_CAutomobile::GetAt ; call CPool<CVehicle, CAutomobile>::GetAt(int) to get address of vehicle mov ebx, ds:ScriptParams ; get value of second parameter, the car lock mov [eax+224h], ebx ; offset vehicle address by 0x224 and set its car lock xor al, al ; return 0
set, car, vehicle, door, lock, status