[Support] Gsc Support #2
-
How can I spawn a bot automatically every game without me doing anything? Like the bot spawns in by itself every game? Is there like a function line command?
-
If you want to spawn one bot, the GSC for it is the following :
self thread maps\mp\bots\_bot::spawn_bot(team); // team is either "axis", "allies" or "autoassign" (WITH QUOTES)
If you need to spawn multiple bots, making a function that loops this line would be the way to go, like this :
self thread spawnBots(NumberOfBots, NameOfTeam); // example : spawnBots(3, "autoassign"); spawnBots(count, team) { for(i = 0; i < count; i++) { self thread maps\mp\bots\_bot::spawn_bot(team); wait .5; } } -
If you want to spawn one bot, the GSC for it is the following :
self thread maps\mp\bots\_bot::spawn_bot(team); // team is either "axis", "allies" or "autoassign" (WITH QUOTES)
If you need to spawn multiple bots, making a function that loops this line would be the way to go, like this :
self thread spawnBots(NumberOfBots, NameOfTeam); // example : spawnBots(3, "autoassign"); spawnBots(count, team) { for(i = 0; i < count; i++) { self thread maps\mp\bots\_bot::spawn_bot(team); wait .5; } } -
Ducxy I have done it by creating a player count variable and threading everything onplayerconnect. This way the bots join only when the first person joins and leave when subsequent people connect.
-
If you want to spawn one bot, the GSC for it is the following :
self thread maps\mp\bots\_bot::spawn_bot(team); // team is either "axis", "allies" or "autoassign" (WITH QUOTES)
If you need to spawn multiple bots, making a function that loops this line would be the way to go, like this :
self thread spawnBots(NumberOfBots, NameOfTeam); // example : spawnBots(3, "autoassign"); spawnBots(count, team) { for(i = 0; i < count; i++) { self thread maps\mp\bots\_bot::spawn_bot(team); wait .5; } }Sass where do i put this
self thread spawnBots(NumberOfBots, NameOfTeam);
// example : spawnBots(3, "autoassign");spawnBots(count, team)
{
for(i = 0; i < count; i++)
{
self thread maps\mp\bots_bot::spawn_bot(team);
wait .5;
}
} -
Sass where do i put this
self thread spawnBots(NumberOfBots, NameOfTeam);
// example : spawnBots(3, "autoassign");spawnBots(count, team)
{
for(i = 0; i < count; i++)
{
self thread maps\mp\bots_bot::spawn_bot(team);
wait .5;
}
}Duui YT maps \ mp \ bots
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login