Did you follow the instructions? You have to add a line of code to the bottom, and put a link to the file in your mission\init.sqf
It definitely shouldn't break anything. Especially players.
They will shoot zeds on sight. They determine whether or not to shoot players based on your faction file (either set_unit_faction.sqf or DayZ_Factions\init.sqf depending on whos code you're using)
So the problem that i'm getting right now is that it's not letting me pass additional parameters through the event handler, so I can't respawn the same unit with the same values. I'm looking at what values I can retrieve from the corpse, but I definitely won't be able to retrieve the waypoints...
This is a common problem. Go to the Simple AI Tutorial thread, and do the part in regards to zombie_generate.sqf.. It's the main reason I created that thread. There's a problem with some clients that Axemans method won't work on. The rest is his code.
I've added:
Respawning (based on variable)
Gearsets (dynamic'ish)
Fixed the gear (so you can add tools and additional weapons)
Added the WEST factions (but beware, because they will share your loyalties in terms of who they will/will not attack)
and severely reduced the size of the mission...
Tell you guys what.. My server expires tonight.. Give me a quick list of stuff you want, and I will try to get it all done before tonight for you.. I will start working on respawns and multiple gear sets right now.
Hmm.. This is why I don't want to edit much. I can't test it first..
Inside of the Gear arrays, you can't add weapons or tools.. That will be an issue.. I don't see any other issues though.. If you can show me any errors in your report file, then I can debug..
You can only user east/west/resistance in terms of what you want, and west is what you are, so be careful what you do with the factions for west. See my above post for the changes to your file in regards to sets of gear.
I was thinking of adding that as well.. it's really just a matter of adding another parameter and creating additional variables.. i can't do to much editing now though because I don't have a server to test it on.
I included your modified file. Now at the end of your _aispawns in your init...
No. You ad
No, you add that first line below every createUnit line in your add_unit_server.sqf. You place the file that you created in your scripts folder just the way it is. You don't put the actual numbers in there, you put the variables I had in there. As for replacing the 4 to y, no. In the...
They're naturally civilian, I was going to make them east for my purposes since east hates everyone anyway, and on the island that I store east they don't have zombies, but like I said, I stopped coding this because my server expired and i'm just waiting for standalone.
You just have to drop their rating, which we do. The problem we have is making the zeds attack the AI, which is a little trickier. According to the API's you can turn zeds from Civilian into another faction, but I never got around to that before I quit working on this project.
Hey guys, my code got corrupted somewhere, but I will give you quick instructions on how to add the respawn.
After your createUnit commads you're going to add "addMPEventHandler["MPKilled",[this] execVM 'YOURFILENAME.SQF'];"
In that file, you're going to put a sleeptimer and then another...
You provide a number for the humanity.. mine is set to 2499 currently, so 1 kill and you're f'd, but you could set it to 0 or even -5000 if you wanted.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.