Hey hoe..
I have a server running and want bots to be spawned if there are less then 4Players...
something like:
Kinda like this... Tried it myself, kopied parts from other mods (PTK - "Level.Metistesting = True;" and the "addTestClient();" thingy )
Anybody an idea how to do it ?
Tried it like this:
on init()
Just to get a maximum of bots
and at OnPlayerspawned()
under the
I have a server running and want bots to be spawned if there are less then 4Players...
something like:
Code:
If players.on.server = 3 spawn.Bots= 3
if players.on.server = 2 spawn.Bots=4
if players.on.server = 6 spawn.Bots= 0
Kinda like this... Tried it myself, kopied parts from other mods (PTK - "Level.Metistesting = True;" and the "addTestClient();" thingy )
Anybody an idea how to do it ?
Tried it like this:
on init()
Code:
level.Bots_Number = 3;
and at OnPlayerspawned()
Code:
for(i=0;i<level.Bots_Number;i++)
AddTestClient();
Code:
self endon("disconnect");