LettuceTurnipTheBeet
Posts: 7
Joined: 12/18/2021 Status: offline
|
I noticed a certain issue with the recently added return value readytime_v which is supposed to return the time to ready a loadout in seconds. When used on an unit accessed with ScenEdit_GetUnit(), it works properly, but when applied to an unit resolved with VP_GetUnit(), it returns KeraLua. LuaFunction. Is this a bug or stemming from my lack of understanding of difference between the two methods? A variable added in the same update, aibornetime_v works properly for both functions.
Lua version: Lua 5.3
>> print(ScenEdit_GetUnit({name='F-15C Eagle', guid='RZD6HZ-0HMED50S0BD0F'}).readytime_v)
0
>> print(VP_GetUnit({name='F-15C Eagle', guid='RZD6HZ-0HMED50S0BD0F'}).readytime_v)
KeraLua.LuaFunction
>> print(ScenEdit_GetUnit({name='F-15C Eagle', guid='RZD6HZ-0HMED50S0BD0F'}).airbornetime_v)
27
>> print(VP_GetUnit({name='F-15C Eagle', guid='RZD6HZ-0HMED50S0BD0F'}).airbornetime_v)
27
|