GTAG - Modding - Opcode Database - 0090
Opcode Database
0090
| Description | Converts the float value of the local variable to an integer (via flooring) and stores the result to the global variable. |
|---|---|
| Parameters (v2) | 1) (Returned) Global variable (VAR_INT) 2) Local variable (LVAR_FLOAT) |
| Games | |
| Category | Common, Math |
| San Andreas | |
| sascm.ini | 0090=2,%1d% = float_to_int %2d% |
| Example | 0090: $int = float_to_int 0@ |
| Command Name | CSET_VAR_INT_TO_LVAR_FLOAT |
| Vice City | |
| sascm.ini | 0090=2,%1d% = float_to_int %2d% |
| Example | 0090: $int = float_to_int 0@ |
| GTA III | |
| gtascm.ini | 0090=2,%1d% = float_to_int %2d% |
| Example | 0090: $int = float_to_int 0@ |

