AddBot
This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports. |
This article documents an ACS function which is only available in the acs-botfunctions Mercurial topic.
Also see the following merge request: !10: ACS functions: "AddBot" and "RemoveBot" |
int AddBot ([str name[, int team]])
Usage
Adds a bot to the game.
Parameters
- name: The name of the bot to be added, as defined in BOTINFO. If this is unspecified or empty, a random bot will be added.
- team: The team to add the bot to. If this is unspecified, the bot will be added to a random team.
Return value
Returns 1 if the bot was added successfully, or 0 on error (e.g. no bot with the given named is defined, an invalid team was given, or the map disables bot nodes).
Examples
This article lists no examples, please add one. |