Jump to content

Search the Community

Showing results for tags 'xy coords'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. Hey guys, I'm hoping there's a quick fix to this problem. Right now I'm making a mod that uses getModData to store a "charge", and access this tile from other blocks("consumers"). There's also some other mod data i'd like to reference as well. I'm having some trouble referencing the tile or object that I want to store the charges. There's two ways I could think of doing it: 1.)Referencing the tile the object that stores the charges is on by X and Y coords. Problem is I'm not quite sure how to pull that data from a tile. 2.)Referencing the instance of the "charger" item in question using it's index and storing it as mod data on the consumer. The only thing I'm afraid of is that the reference would be lost on Save/load, and recouping up the network might be a pain after every load. So, to summarize: What would be the best way to locate a instance of a item, fixture or tile?Could a item be targeted in Lua using just the raw XY coords?I'm also looking for a way to store "network" data. An ideal would allow each unique network to store an amount of power and have that be stored in one place(say on the player using getModData or some kind of fake item that spawns off map when a new network is created). What would be the best way of doing this?Thanks!
×
×
  • Create New...