Script to spawn if single player?

You would have just to make a script that checks if player 2 exists, wanted to try the same thing for TMNT.

You could easily just have two game modes, one for solo one for two players.  Copy the maps and add spawns for NPC at the start of each map.


LEVELS.TXT

Code:
set  ONE_PLAYER_MODE
maxplayers      1
file data/levels/stage1.txt

set  TWO_PLAYER_MODE
maxplayers      2
file data/levels/stage1_2p.txt
 
I could create simple script that will remove NPC if there are more players. But the script only works once so if 2nd player joins in middle of game, NPC will remain
 
Back
Top Bottom