GTAG - Modding - Opcode Database - 0208
Opcode Database
0208
| Description | Generates a random float between the ranges specified. |
|---|---|
| Parameters (v2) | 1) Float (FLOAT) 2) Float (FLOAT) 3) (Returned) Float (FLOAT) |
| Games | |
| Category | Common, Math |
| Command Name (IV) | GENERATE_RANDOM_FLOAT_IN_RANGE |
| San Andreas | |
| sascm.ini | 0208=3,generate_random_float_in_range %1d% %2d% store_to %3d% |
| Example | 0208: generate_random_float_in_range -0.2 0.2 store_to 17@ |
| Command Name | GENERATE_RANDOM_FLOAT_IN_RANGE |
| Vice City | |
| sascm.ini | 0208=3,%3d% = random_float %1d% %2d% |
| Example | 0208: $1102 = random_float 0.0 360.0 |
| Command Name | GENERATE_RANDOM_FLOAT_IN_RANGE |
| GTA III | |
| gtascm.ini | 0208=3,%3d% = random_float %1d% %2d% |
| Example | 0208: $PATIENT_Z_ANGLE = random_float 0.0 359.875 |
| Command Name | GENERATE_RANDOM_FLOAT_IN_RANGE |

