ScenEdit_AddCustomLoss displayerror
Posted: Fri May 31, 2024 1:46 am
I have setup a scenario and would like to track the number of human casualties on both sides to report with the losses. When a unit is destroyed, I have a Lua event that looks up the crew for that unit and adds it to that side's losses - ScenEdit_AddCustomLoss( un.side, {{'Casualties', lost}})). The function seems to work fine; if I use the Lua Console and run a quick script to get the losses, I can see the one that I added
However, when I try to look at the Losses + Expenditures screen I get an error saying, "Conversion from string 'Causalities' to type 'Double' is not valid."
Is this an error in the system or am I doing something wrong here?
However, when I try to look at the Losses + Expenditures screen I get an error saying, "Conversion from string 'Causalities' to type 'Double' is not valid."
Is this an error in the system or am I doing something wrong here?