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]
|
|
|
|