Closed ghost closed 2 years ago
When calling the getDocked function on a truck station, it returns a value of the type userdata, instead of a WheeledVehicle object.
getDocked
WheeledVehicle
You need:
How to reproduce:
Code:
truckStation = component.proxy(component.findComponent(findClass('Build_TruckStation_C'))[1]) print(type(truckStation:getDocked()))
Debug files: SMMDebug.zip
Confirming this issue. print(truckStation:getDocked()) (without type) when a vehicle is at station throws "bad argument ##1 to '?' (Instance is invalid)".
print(truckStation:getDocked())
type
When calling the
getDocked
function on a truck station, it returns a value of the type userdata, instead of aWheeledVehicle
object.To Reproduce:
You need:
How to reproduce:
Code:
Debug files: SMMDebug.zip