Search the Community
Showing results for tags 'function'.
-
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.
-
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.
-
Which sandbox features are working and witch ones are not?
- 7 replies
-
- function
- dysfunction
-
(and 4 more)
Tagged with:
-
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.