Skip to content

ACS functions: "AddBot" and "RemoveBot"

Adam Kaminski requested to merge topic/default/acs-botfunctions into branch/default

This adds two ACS functions that add or remove bots from the game, replicating the addbot and removebot CCMD that some mods used with ConsoleCommand in the past:

  • AddBot( [str name [, int team ]] )

  • RemoveBot( [str name] )

  • name is a string containing the name of the bot being added or removed. If unspecified, or an empty string (i.e. "") is passed, then a random bot will be added or removed.

  • team is the index of the team that the bot will join (must only be used in team-based game modes). If unspecified, then the bot will join a random team.

  • Returns 1 if a bot is added or removed successfully, 0 on failure (e.g. no bot exists with the specified name, the team is invalid, or the current level doesn't allow bot nodes).

https://zandronum.com/tracker/view.php?id=4123

Merge request reports