0407

From GTAModding
Jump to: navigation, search

GTA III REGISTER_TIME_TAKEN_DEFUSE_MISSION


Description
Saves the time for bomb defusal stat
Syntax
0407: time_taken_defuse_mission = [int]
Parameter
[int]
Integer value

This opcode saves the lowest value to the "Best time for bomb defusal" stat (GXT key FEST_BD). The stat initially starts with a value of 0 and does not appear in the stats menu until its value is greater than 0. Any value can overwrite a value of 0. For every other values, only those lower than the saved value will update the saved value with the new value; higher values have no effect on the stat. The value set with this opcode is saved in block 17 of the save file.


Vice City San Andreas GET_OFFSET_FROM_CAR_IN_WORLD_COORDS


Description
Stores a point offset from the vehicle's position
Syntax
0407: create_coordinate [var1] [var2] [var3] from_car [car handle] offset [flt1] [flt2] [flt3]
Parameter
[car handle]
The handle of the vehicle
[flt1]
Distance to offset from the vehicle's right side
[flt2]
Distance to offset from the vehicle's front side
[flt3]
Distance to offset from the vehicle's top side
[var1]
Variable to store the offset x-coordinate
[var2]
Variable to store the offset y-coordinate
[var3]
Variable to store the offset z-coordinate
Native analog
GET_OFFSET_FROM_CAR_IN_WORLD_COORDS

This opcode stores a point offset from the vehicle's position. The coordinates it stores are dependent on the direction the vehicle is facing.

Keywords

store, coordinates, get, point, car, vehicle, offset

See also