- Found in:
- Dylbills PE
Description
Documentation Comment
requires skse
If TreatAsNegative == true, returns hex as negative number.
Example:
ConvertHexToInt("FD4", true) returns -44
ConvertHexToInt("FD4", false) returns 4052
Note that if the hex is 8 digits in length (such as form IDs) and starts with "F" it is always treated as negative natively by papyrus.
Caveats
Parameters
stringhex
boolTreatAsNegative=false
Examples
Auto-Generated Example
string myString__hex
bool myBool__TreatAsNegative
int returnedValue = DbMiscFunctions.ConvertHexToInt(myString__hex, myBool__TreatAsNegative)