Giant Space Hamster Posted June 6, 2023 Share Posted June 6, 2023 I'm trying to cache the info from a vehicle and would like to create a new BaseVehicle instance to populate as a copy, but I can't figure out how to call a Java class's constructor from lua. Anyone know how to do this? Link to comment Share on other sites More sharing options...
Squall4120 Posted June 22, 2023 Share Posted June 22, 2023 The javadoc shows which parameters the constructor accepts: BaseVehicle(IsoCell cell) I think you can call this constructor in Lua like this and provide it with a cell: BaseVehicle.new() Example: BaseVehicle.new(getCell()) I'm not 100% sure on this though. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now