Jump to content

Item to Map Object Conversion


Yossitaru

Recommended Posts

I am attempting to replicate the functionality of base game generators, where they exist as items in your inventory, but become fully fledged World Objects on the ground when dropped. The best I was able to find was the MapObjects.OnNewWithSprite function call found in MOGenerator.lua. However, I have no indication of when or if this function is even called, and I can find no other code that handles the creation of the World Object version of the generator, so I feel I have hit a dead end.

 

Am I simply looking for the wrong words in the lua, or is this a special Java functionality that only works for base game generators?

Edited by Yossitaru
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...