Number and string mixed in UIposition array in TransportPylonsComponent vehicle configs
Needs Review, Needs TriagePublic

Description

There are quite a lot of mixed (number and string) UIposition arrays in the pylon configs.
This might work in the engine but as soon as you use the getArray scritping command it returns an array with a number and a string element which you can't use in UI position commands.

Examples:

getArray (configfile >> "CfgVehicles" >> "CUP_B_AH64D_DL_USA" >> "Components" >> "TransportPylonsComponent" >> "pylons" >> "pylonWingR" >> "UIposition")

returns ["0.0.4",0.3]
UIposition[] = {"0.0.4",0.3};
(0.0.4???)

getArray (configfile >> "CfgVehicles" >> "CUP_B_L39_CZ" >> "Components" >> "TransportPylonsComponent" >> "pylons" >> "pylons1" >> "UIposition")

returns [0.4,"0.11+0.0"]
UIposition[] = {0.4,"0.11+0.0"};

getArray (configfile >> "CfgVehicles" >> "CUP_B_A10_DYN_USA" >> "Components" >> "TransportPylonsComponent" >> "pylons" >> "LeftWingInner" >> "UIposition")

returns ["0.3+0.02","0.01+0.44"]
UIposition[] = {"0.3+0.02","0.01+0.44"};

+ in the string does it also render useless for parseNumber

Xeno created this task.Aug 27 2018, 10:54 PM
Xeno updated the task description. (Show Details)