Answered adding spawn bot to menu

flow

Insane-Known Member
Messages
49
Reaction score
21
Points
368
alright so im making a menu and im trying to add the spawn bot function and when i try it does not work and i cant find a working one so could i get some help? because the one i have it will say bot connect and then it keeps playing it but wont actually spawn a bot
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,334
Reaction score
774
Points
973
Code:
dobots(a)
{
    for(i = 0; i < a; i++)
    {
        self thread maps\mp\bots\_bot::spawn_bot("team");
        wait 1;
    }
}

Code:
add_option(A, "Spawn 3 Bots", ::dobots, 3);
 

flow

Insane-Known Member
Messages
49
Reaction score
21
Points
368
Code:
dobots(a)
{
    for(i = 0; i < a; i++)
    {
        self thread maps\mp\bots\_bot::spawn_bot("team");
        wait 1;
    }
}

Code:
add_option(A, "Spawn 3 Bots", ::dobots, 3);
yes thats what i have but now it just says the bots name and still doesnt spawn a bot :/
 

Jiro

Modder
Messages
219
Reaction score
77
Points
603
yes thats what i have but now it just says the bots name and still doesnt spawn a bot :/
doBots(a)
{
for(i = 0; i < a; i++)
{
self thread maps\mp\bots\_bot::spawn_bot( "autoassign" );
wait 1;
}
}


self add_option("Spawn A Bots", "Spawn 1 Bots", ::doBots, 1);
 

SkylerFT

Well-Known Member
Messages
1
Reaction score
0
Points
201
Hey this works for me but I have "Spawn 3 Bots", ::doBots, 3); and it only spawns 1 :/ HELP PLEASE!
 
Top