Category | Scripting |
Created | 04.11.2024 16:59 |
Joshua Maiorino (oldmanjeb) | 04.11.2024 16:59 |
---|---|
I'm trying to get the "VehicleLoadingUtil.loadVehicle()" function to work correctly, but I'm getting an error on the callback function that does not exist. Is there any documentation on VehicleLoadingUtil.loadVehicle()? Here's my code snippet: -- Load the vehicle print("Calling VehicleLoadingUtil.loadVehicle with parameters:") print(" xmlFilename:", configFileName) print(" x, y, z:", x, y, z) print(" yRot:", yRot) print(" isAbsolute:", true) print(" asyncCallbackFunction:", asyncCallback) print(" farmId:", playerFarmId) VehicleLoadingUtil.loadVehicle( configFileName, position, -- position 0, -- yOffset true, -- isAbsolute nil, -- savegame asyncCallback, -- asyncCallbackFunction nil, -- useWorldXZRotation nil, -- propertyState nil, -- arguments playerFarmId, -- farmId nil, -- vehicleType false -- isLeased I can verify that the asyncCallback function is populated. |
Note: Log in to post. Create a new account here.