Jump to content

Search the Community

Showing results for tags 'function'.

  • 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 4 results

  1. Hi, i encountered this bug, when i wanted to add another mod to my already running game. When you click on the "choose mods" button when loading the game, you get an empty screen (only the background picure of the game still exists). Now, this bug doesnt happen, if you clicked atleast once on the "Mods" button in the main menu before attempting to do this (once per game start is enough). As i found out, the reason for this is, that the game tries to display a box with text, using a function that does not exist. In the file "ISModsNagPanel.lua" in the location Steam\steamapps\common\ProjectZomboid\media\lua\client\OptionScreens in line 32: self.richText:setText(getText("UI_ModsNagPanel_Text")) The function "setText" doesnt exist. Replacing it with: self.richText.text=(getText("UI_ModsNagPanel_Text")) fixes the problem.
  2. function Name.onAttack(owner,weapon) if owner:getPrimaryHandItem().minAngle ~= 0.95 then getPlayer():Say("wrong angle"); return; end getPlayer():Say("angle was 0.95"); end im just trying to see if I can access and check weapon attributes of the currently held weapon. when using a pistol and firing it will say wrong angle. even though a pistols default minAngle is 0.95. I must be accessing the info the wrong way can someone help me? once i can get it detecting the angle of 0.95 in a pistol I want to then make a weapon attachement that changes the minAngle and see if returned value here also has the modified minAngle value from the weapon attachment. So that my condition here will basically be checking to see if the weapon attachment is on. That is what I ultimately want, to just check if a certain weapon attachement is on the currently being used weapon.
  3. How could i execute a second chunk a set amount of time after the first one. As in: execute 1st chunk --> wait five seconds --> continue with 2nd chunk. Me thinks one way to go is to set a counter for an 'OnTick' or 'OnPlayerUpdate' event but both are a drag on performance.
×
×
  • Create New...