The next step is to add enemy spawning and death on collision with the laser - then it will be ready for the first stage of play testing.
![7 days to die enemy spawning 7 days to die enemy spawning](https://res.cloudinary.com/lmn/image/upload/e_sharpen:150,f_auto,fl_lossy,q_80/v1/gameskinnyc/6/8/5/6857800dd7d1f6b.jpg)
However, I wouldnt leave them off for too long as theres grindy trophies. I have now created an enemy prefab for the "grub" - with basic pursuing AI behaviour. You can even disable enemy spawns for the first few days until you get your bearings. So I was thinking, maybe if I turn all the enemy spawning off until the 7 day horde, I might be able to actually have some measure of fun in A17. This enemy is currently blocked out and represented by a yellow circle. So, I know a lot of people hate the 7 day hordes, but me, that's the whole reason I play this game. I'm starting with the "grub" style enemy - the smaller, faster and easier-to-kill of the two enemies planned so far. Modder Pringlz46290 included the option to have the blocks randomly spawn in. how many zombies that spawn and if they continue to spawn, loot abundancy. 7 Days to Die was one of the biggest games to come out of the early access. With the ray casting and line rendering sorted (for now), I moved onto implementing a basic enemy. 7 Days to Die is a Survival Sandbox game with a healthy dose of zombies. LineRenderer.SetPositions(listOfPoints.ToArray()) 7 Days to Die is a survival horror video game set in an. LineRenderer.positionCount = listOfPoints.Count Is there a way to turn Enemy spawn off, but still get hordes on the 7th day. (There is a bug that makes the spitter zombies spawn anyway but they are rare.) 1. Set it to 'Disabled' to play without zombies.
![7 days to die enemy spawning 7 days to die enemy spawning](https://static.wikia.nocookie.net/7daystodie_gamepedia/images/1/12/GameSettings4.jpg)
RaċastOffNormal(transform.position, firstHitObject, layerMask, reflections, listOfPoints) There is an option for it called 'Enemy spawning' on page 2 of the game settings.
7 DAYS TO DIE ENEMY SPAWNING CODE
Ian came to the rescue with this handy piece of code which allowed me to feed to multiple collision points from the ray cast into the line renderer: Once the ray casting was working as intended, I then worked it so that it feeds into a line renderer - so the rays are now visible to the player - but I initially had some trouble where I could only get the initial (first) ray collision to be drawn via the line renderer. This will be adjusted as gameplay testing continues to find the right difficulty sweet spot.
![7 days to die enemy spawning 7 days to die enemy spawning](https://images.shockbyte.com/knowledgebase/kb_general_files_configfiles.png)
Currently set to 2 reflections (bounces), as more than that was becoming extremely challenging to avoid. The ray casting was now working suitably. I have started implemented basic enemy behaviour and spawning. Week 8 has seen minimal progress - with the main outcome for the week being that the ray casting system from the player is complete.