Jump to content

Search the Community

Showing results for tags 'ISTimedActionQueue'.

  • 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. I've reached a point in modding, where I need to learn what this function: ISTimedActionQueue Does. What I have learned from delving into PZ modding, is that lua calls require knowing what is going on here. I'm assuming this is the handler for all the action "bar" related things that go on in PZ. Such as eating a "Ham" item in my example. ("Jambon" if you are Robert Johnson ) so booleans like "Finished" and "Started" are all there in the documentation (as you would expect). My example pertains to the following piece of code I have copied out of the lua file which deals extensively with the inventory panel (You can find the example files in "Steam/SteamApps/Media/lua" incidentally!) -- alot of stuff here before -- Then eat it. ISTimedActionQueue.add(ISEatFoodAction:new(player, item, 240)); I decided to debug with a few print statements before I got stuck into it- Heres what I did to debug, basically just see what printed in console: -- Then eat it. ISTimedActionQueue.add(ISEatFoodAction:new(player, item, 240));--debugprint(getItemText(item:getName()));print(item);print(player, item);print(item:getName());The answer, quizzically, was none of the print statements worked! Interesting isn't it! The method defined "item" here: "ISInventoryPaneContextMenu.eatItem = function(item, player)" My suspicions lie entirely with the ActionQueue functions. Does anyone know what is going on here?
×
×
  • Create New...