Jump to content

ThePCGuy

Members
  • Posts

    97
  • Joined

  • Last visited

Everything posted by ThePCGuy

  1. Oh well. Thanks for your help then, as i am new to scripting can you explain me this: for _, index in ipairs ( numberOfIndex ) do Its nice that someone else is does it for me, but i need to learn myself certain functions etcetra also.
  2. ERROR: [DayZ-MTA]\zombietest\zombie_server.lua:48: bad argument #1 to 'unpack' (table expected, got boolean) Shows that error on each zombie spawn now.
  3. Great! Works now. One thing about your fix, my goal was to not have multiple lines with ''setWorldSoundEnabled'' wich you did for the group (3, 5) Is it possible to do the same as with the index?
  4. Works now, only the animation changes every 1 second for all zombies in the game. Thats not what i meant if you thought it was. I want to randomly change the animation over time or even better each zombie that spawns have a different one.
  5. Tried again with no results.
  6. Still, the sound effects that i disabled with this code are still enabled.
  7. Why is this not working ? local numberOfGroups = { 5, 3 } local numberOfIndex = { 5, 4, 3, 53, 14, 33 } addEventHandler("onClientResourceStart", resourceRoot, function() setWorldSoundEnabled ( #numberOfGroups, #numberOfIndex, false ) setDevelopmentMode (true) end end )
  8. A other question, how can i make a list of groups so it fetches it from there instead of doing this: setWorldSoundEnabled( 5, false ) setWorldSoundEnabled( 5, 31, true ) setWorldSoundEnabled( 5, 32, true ) But doing like: numberOfGroups = { {5}, {4}} setWorldSoundEnabled( numberOfGroups, false ) I know its totally wrong but i dont know how to do something like that since i am new to scripting.
  9. Yes! It worked. Awesome man, thanks I had to use a upgrade on my resource tho
  10. Thanks, i will try that out.
  11. That's the ambient not the single shots that ''you'' fire yourself.
  12. It's currently set onto specified zombie spawn points. So what is causing this problem? I added a custom map for this gamemode called: Ztown and it works only it gives lots of errors. This is the meta.xml setting "*StreamMethod" value="[2]" /> EDIT: Wrong setting this is the right one "*MaxZombies" value="[100]" /> --maximum allowed zombies -->
  13. Has this to do anything with the zombie spawn? ERROR: zombietest\zombie_server.lua:217: attempt to compare boolean with number newZombieLimit = get("" .. getResourceName(startedResource) .. ".Zlimit") if newZombieLimit ~= false then if newZombieLimit > ZombieLimit then --This is line 217 newZombieLimit = ZombieLimit end else newZombieLimit = ZombieLimit end
  14. For some reason zombies dont spawn for me. The resource scoreboard is not running, how come ?
  15. Can those be disabled? Since i am using seperate gun sound effects ingame, its ennoying to hear both effects at the same time. EDIT: I searched more about this and found this page: https://wiki.multitheftauto.com/wiki/Set ... ectEnabled But how i am supposed to know the name of the sound element ?
  16. I mean the list is really empty, even when clicking on it the functions doesnt show up neither when searching for it.
  17. When opening the program the functions arent there, the list is empty. How can i fix this ?
  18. I just checked the whole resource (2 lua scripts) and didnt find something usefull about the spawns. Zombies spawn randomly if you walk around with ofcourse the danger elementdata. setTimer ( function (ped) if ( isElement ( ped ) ) then setPedAnimation ( ped, "ped", chaseanim, -1, true, true, true ) end end, 800, 1, ped ) ''chaseanim'' is the animation, so is it possible to make the math.random refresh ?
  19. Hello, I need some help with a Community Zombie script called: Zday. You have 3 types of zombie walks that activates by a setting trough meta.xml ZombieSpeed = get("zombies.Speed") Since i want to change the walk randomly i did this: ZombieSpeed = math.random( 1, 3 ) if ZombieSpeed == 1 then --super slow zombies (goofy looking) chaseanim = "WALK_drunk" checkspeed = 2000 elseif ZombieSpeed == 2 then -- normal speed chaseanim = "run_old" checkspeed = 1000 elseif ZombieSpeed == 3 then -- rocket zombies (possibly stressful on server) chaseanim = "Run_Wuzi" checkspeed = 680 end It does work, only it doesnt refresh on each zombie spawn. The math.random only activates once at the resource startup or restart. Is it possible to refresh after each zombie spawn?
×
×
  • Create New...