AddBot: Difference between revisions
DrinkyBird (talk | contribs) (Documented AddBot) Tag: Source edit |
DrinkyBird (talk | contribs) (MR was merged, so this is now a 3.2 feature) Tag: Source edit |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ACSWarning}}{{ | {{ACSWarning}} | ||
int '''AddBot''' ([str ''name''[, int ''team'']]) | {{DevfeatureWarning|version=3.2|type=an [[ACS]] function}} | ||
int '''AddBot''' ([str ''name''[, int ''team'']]) {{Devfeature|3.2|alpha}} | |||
== Usage == | == Usage == | ||
Line 10: | Line 11: | ||
=== Return value === | === 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 [[MAPINFO| | 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 [[MAPINFO|disables bot nodes]]). | ||
== Examples == | == Examples == |
Latest revision as of 20:59, 28 January 2024
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 development builds of Zandronum 3.2 and newer. |
int AddBot ([str name[, int team]]) (development version 3.2-alpha and above only)
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. |