triggered character spawning
triggered character spawning
When you make a level,.. do the enemies have to be present from the start, or can you make trigger spots where if you walk through it more enemies spawn somewhere in the map? That way you don't lag the game from having all enemies loaded from the start?
- darksmaster923
- Posts: 1857
- Joined: Wed Jan 03, 2007 10:32 pm
- Location: Huntington Beach, California, USA
Re: triggered character spawning
you can make the enemies not render with this cmdcreeper wrote:When you make a level,.. do the enemies have to be present from the start, or can you make trigger spots where if you walk through it more enemies spawn somewhere in the map? That way you don't lag the game from having all enemies loaded from the start?
Pawnrender(false);
and check if player is in distance and set it
Pawnrender(true);
Herp derp.