Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

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

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Fixed] LUA doc says Unit.readytime is number but it is actually a string Page: [1]
Login
Message << Older Topic   Newer Topic >>
[Fixed] LUA doc says Unit.readytime is number but it is... - 11/24/2020 8:02:43 PM   
stonie

 

Posts: 19
Joined: 11/22/2020
Status: offline
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




Attachment (1)

< Message edited by Rory Noonan -- 11/25/2020 6:43:54 AM >
Post #: 1
RE: LUA doc says Unit.readytime is number but it is act... - 11/25/2020 6:43:39 AM   
Rory Noonan

 

Posts: 2816
Joined: 12/18/2014
From: Brooklyn, NY
Status: offline
It does indeed. My bad

That's fixed.

_____________________________


(in reply to stonie)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Fixed] LUA doc says Unit.readytime is number but it is actually a string Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.391