triggered character spawning

Topics regarding Scripting with Reality Factory
Post Reply
creeper
Posts: 29
Joined: Thu Sep 06, 2007 12:41 am

triggered character spawning

Post 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?
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Re: triggered character spawning

Post 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);
Herp derp.
creeper
Posts: 29
Joined: Thu Sep 06, 2007 12:41 am

Post 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.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post 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.
Pain is only psychological.
Post Reply