GTAG - Modding - Opcode Database - 0091
Opcode Database
0091
| Description | Converts the integer value of the local variable to a float and stores the result in the global variable. |
|---|---|
| Parameters (v2) | 1) (Returned) Global variable (VAR_FLOAT) 2) Local variable (LVAR_INT) |
| Games | |
| Category | Common, Math |
| San Andreas | |
| sascm.ini | 0091=2,%1d% = int_to_float %2d% |
| Example | 0091: $float = int_to_float 0@ |
| Command Name | CSET_VAR_FLOAT_TO_LVAR_INT |
| Vice City | |
| sascm.ini | 0091=2,%1d% = int_to_float %2d% |
| Example | 0091: $float = int_to_float 0@ |
| GTA III | |
| gtascm.ini | 0091=2,%1d% = int_to_float %2d% |
| Example | 0091: $float = int_to_float 0@ |

