GTAG - Modding - Opcode Database - 0092
Opcode Database
0092
| Description | Converts a float value to an integer (via truncating). Examples 1.2 > 1 1.9 > 1 0.2 > 0 -1.3 > -1 |
|---|---|
| Parameters (v2) | 1) (Returned) Integer (LVAR_INT) 2) Float (LVAR_FLOAT) |
| Games | |
| Category | Common, Math |
| San Andreas | |
| sascm.ini | 0092=2,%1d% = float_to_int %2d% |
| Example | 0092: 0@ = float_to_int 1@ |
| Command Name | CSET_LVAR_INT_TO_LVAR_FLOAT |
| Vice City | |
| sascm.ini | 0092=2,%1d% = float_to_int %2d% |
| Example | 0092: 0@ = float_to_int 1@ |
| GTA III | |
| gtascm.ini | 0092=2,%1d% = float_to_int %2d% |
| Example | 0092: 0@ = float_to_int 1@ |

