Jump to content
Sign in to follow this  

Item to Map Object Conversion

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

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...