Jump to content

How to call a Java class constructor from LUA? Or, how to create a new BaseVehicle instance?


Giant Space Hamster

Recommended Posts

  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...