Post: Bot spawning bug?
08-30-2015, 09:29 AM #1
JustFuSiOn
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); I've been trying to add a bot spawner to my menu ever since the initial release.

I've tried the script from the managed code list and other places but it only ever spawns one bot.

Is there something in init or #include I'm missing?
(adsbygoogle = window.adsbygoogle || []).push({});
08-30-2015, 09:34 AM #2
SpawnBot(team)
{
maps/mp/bots/_bot::spawn_bot(team);
}

thats the code
08-30-2015, 09:42 AM #3
JustFuSiOn
Are you high?
Originally posted by xSupremeModder View Post
SpawnBot(team)
{
maps/mp/bots/_bot::spawn_bot(team);
}

thats the code


Isn't that just the same as from the code list? Except it only spawns one
08-30-2015, 09:43 AM #4
Originally posted by xFuSiOnMODzZ View Post
Isn't that just the same as from the code list? Except it only spawns one


yes, explain your problem more ?
08-30-2015, 09:47 AM #5
JustFuSiOn
Are you high?
Originally posted by xSupremeModder View Post
yes, explain your problem more ?


I call the option from the managed code list like

self add_option("SubMenu1", "Spawn 6 Bots", ::spawnBot, 6);

Even though I tell it to spawn 6 bots it only spawns one, and if I press the option a second time it does nothing
08-30-2015, 09:51 AM #6
Originally posted by xFuSiOnMODzZ View Post
I call the option from the managed code list like

self add_option("SubMenu1", "Spawn 6 Bots", ::spawnBot, 6);

Even though I tell it to spawn 6 bots it only spawns one, and if I press the option a second time it does nothing


Here
spawnBots(num)
{
for(i=0;i < num;i++)
{
maps/mp/bots/_bot::spawn_bot("autoassign");
wait 0.1;
}
self iPrintLn(num + " bot(s)spawned");
}

try that
08-30-2015, 09:53 AM #7
JustFuSiOn
Are you high?
Originally posted by xSupremeModder View Post
Here
spawnBots(num)
{
for(i=0;i < num;i++)
{
maps/mp/bots/_bot::spawn_bot("autoassign");
wait 0.1;
}
self iPrintLn(num + " bot(s)spawned");
}

try that


I'll let you know if it works once I've tried it
08-30-2015, 09:56 AM #8
Originally posted by xFuSiOnMODzZ View Post
I'll let you know if it works once I've tried it


ok and make sure you change it to this
self add_option("SubMenu1", "Spawn 6 Bots", ::spawnBots, 6);
08-30-2015, 10:05 AM #9
JustFuSiOn
Are you high?
Originally posted by xSupremeModder View Post
ok and make sure you change it to this
self add_option("SubMenu1", "Spawn 6 Bots", ::spawnBots, 6);


still only spawns one bot
08-30-2015, 10:06 AM #10
Originally posted by xFuSiOnMODzZ View Post
still only spawns one bot


sorry i couldnt help

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo