[Fixed] LUA doc says Unit.readytime is number but it is actually a string (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


stonie -> [Fixed] LUA doc says Unit.readytime is number but it is actually a string (11/24/2020 8:02:43 PM)

The documentation is either wrong or this is a bug where Unit.readytime is returned as string. Was able to test with a ready unit in an airfield

local CAPUnit = ScenEdit_GetUnit(HVALIST[1])
print(CAPUnit.readytime)
if (CAPUnit.readytime == 0) then
print("Number")
end

if (CAPUnit.readytime =='0') then
print("String")
end

Prints

0
"String"

for me

[image]local://upfiles/75593/700C2AA45CA24B75809F4F2A7885AF46.jpg[/image]




Rory Noonan -> RE: LUA doc says Unit.readytime is number but it is actually a string (11/25/2020 6:43:39 AM)

It does indeed. My bad [:)]

That's fixed.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.6875