GTAG - Modding - Opcode Database - 008C
Opcode Database
008C
| Description | Converts the float in the second global variable to an integer (via flooring) and stores the integer into the first global variable. |
|---|---|
| Parameters (v2) | 1) (Returned) Global variable (VAR_INT) 2) Float (FLOAT) |
| Games | |
| Category | Common, Math |
| San Andreas | |
| sascm.ini | 008C=2,%1d% = float_to_int %2d% |
| Example | 008C: $int = float_to_int $float |
| Command Name | CSET_VAR_INT_TO_VAR_FLOAT |
| Vice City | |
| sascm.ini | 008c=2,%1d% = float_to_integer %2d% |
| Example | 008C: $int = float_to_int $float |
| GTA III | |
| gtascm.ini | 008c=2,%1d% = float_to_integer %2d% |
| Example | 008C: $int = float_to_int $float |

