Page 1 of 1

triggered character spawning

Posted: Sat Sep 08, 2007 10:02 pm
by creeper
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?

Re: triggered character spawning

Posted: Sun Sep 09, 2007 12:23 am
by darksmaster923
creeper 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?
you can make the enemies not render with this cmd
Pawnrender(false);
and check if player is in distance and set it
Pawnrender(true);

Posted: Mon Sep 10, 2007 3:26 am
by creeper
That's nice to know. In FPScreator there was a trigger just for spawning something when you walked through the area you filled with the clear cube. I used it to spawn more and more enemies just out of view as the player moved through the level.

Posted: Mon Sep 10, 2007 10:05 am
by Juutis
Pawns have a field called SpawnTrigger in their attributes. The pawn is spawned when the this trigger turns on.
So when the player enters a room, for example, you could activate a trigger that spawns enemies in the next room.