DataTypes used in Params-Class are altered when function BIS_fnc_getParamValue is used with a Boolean or float Datatype
Description
Description
Details
Details
- Legacy ID
- 432558535
- Severity
- None
- Resolution
- No Bug
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
Define Parameter in Description.ext
example:
class Params
{
class PARAM_ACEMEDICALOVERDOSE {
title = " Overdosing:"; values[] = {false, true}; texts[] = {"Disable", "Enable"}; default = true;
};
};
and get the value with BIS_fnc_getParamValue
then the values DataType is altered into Number which causes errors if you need correct DataTypes
Event Timeline
Comment Actions
Hello, This is correct behaviour. In config True / False is translated into 1 / 0. This is a behaviour native to the engine. Thank you for your feedback