Difference between revisions of "0407"
Jump to navigation
Jump to search
(Created page with "{{OpCode | games = {{Icon|3}} | command = REGISTER_TIME_TAKEN_DEFUSE_MISSION | description = Saves the time for bomb defusal stat | synt...") |
m |
||
Line 8: | Line 8: | ||
}} | }} | ||
− | This opcode saves the lowest value to the "Best time for bomb defusal" stat ([[GXT]] key <code>FEST_BD</code>). The stat | + | This opcode saves the lowest value to the "Best time for bomb defusal" stat ([[GXT]] key <code>FEST_BD</code>). 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 [[Saves (GTA 3)#Block 17: Stats|block 17 of the save file]]. |
Latest revision as of 01:49, 28 November 2016
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.
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