Cocolharicot Posted March 1, 2021 Share Posted March 1, 2021 Hello the community. I created this post because I would like to know if there was a possibility of making sure to make an NPC spawn system. My idea and I will want zombies to spawn that at night and during the day it does not spawn. I have looked in the events but I am blocking. If you have a tutorial it will be super cool! Â Good dev everyone Link to comment Share on other sites More sharing options...
0 Khaikaa Posted March 1, 2021 Share Posted March 1, 2021 1 hour ago, Cocolharicot said: Hello the community. I created this post because I would like to know if there was a possibility of making sure to make an NPC spawn system. My idea and I will want zombies to spawn that at night and during the day it does not spawn. I have looked in the events but I am blocking. If you have a tutorial it will be super cool!  Good dev everyone  I can't think any good solution without source modifications. You could create map events which would only run at night and spawn npcs, but controlling how many npcs have been spawned and how many of them have been defeated won't be an easy task. Link to comment Share on other sites More sharing options...
0 Cocolharicot Posted March 1, 2021 Author Share Posted March 1, 2021 And how do you create this event to put npc on a map at night? Link to comment Share on other sites More sharing options...
0 Khaikaa Posted March 1, 2021 Share Posted March 1, 2021 11 minutes ago, Cocolharicot said: And how do you create this event to put npc on a map at night? Â There is a Time editor within all the other editors which let you to create time periods(12am to 12pm and 12pm to 12am by default). You can create all the time periods you need. After you finished that, create a map event and, in the spawn conditions, add a "time is between" condition. That way, that event will only run if you are on a certain time period. But I don't think I can help you with the spawn control, you'll need to think about it by yourself unless there is someone else who knows a good way to manage it and has the time to explain it. Link to comment Share on other sites More sharing options...
0 Tron Posted March 1, 2021 Share Posted March 1, 2021 If time is between X & Y then spawn Z, else despawn NPCs. - looks like one way to achieve your desired effect. Link to comment Share on other sites More sharing options...
0 Cocolharicot Posted March 1, 2021 Author Share Posted March 1, 2021 I wanted to do with time so I really have to take myself wrong to the manipulation to do because its not x) On the other hand I end up with 60 NPC see - I have to look if it has way to change the number of NPC to do spawnEt comment pouvez-vous créer cet événement pour mettre npc sur une carte la nuit? Link to comment Share on other sites More sharing options...
0 Tron Posted March 2, 2021 Share Posted March 2, 2021 Make it a loop that every time it spawns it adds to a counter and stops spawning when the counter reaches a specific number. You can add wait times in there too. Link to comment Share on other sites More sharing options...
0 Beast Boyz Posted March 2, 2021 Share Posted March 2, 2021 Be wary of these bug while doing your system : Â https://github.com/AscensionGameDev/Intersect-Engine/issues/572 Â https://github.com/AscensionGameDev/Intersect-Engine/issues/443 Â Or else it can totally break it. Link to comment Share on other sites More sharing options...
Question
Cocolharicot
Hello the community.
I created this post because I would like to know if there was a possibility of making sure to make an NPC spawn system.
My idea and I will want zombies to spawn that at night and during the day it does not spawn.
I have looked in the events but I am blocking. If you have a tutorial it will be super cool!
Â
Good dev everyone
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now