Page MenuHomeFeedback Tracker

missionParams DataTypes are altered with the Function getParamValue
Closed, ResolvedPublic

Description

DataTypes used in Params-Class are altered when function BIS_fnc_getParamValue is used with a Boolean or float Datatype

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

Syr3L edited Steps To Reproduce. (Show Details)Jul 3 2015, 10:40 AM
Syr3L set Category to Scripting.
Syr3L set Reproducibility to Always.
Syr3L set Severity to None.
Syr3L set Resolution to No Bug.
Syr3L set Legacy ID to 432558535.May 8 2016, 12:19 PM
Adam added a comment.Jul 3 2015, 11:04 AM

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