AddBot: Difference between revisions

MR was merged, so this is now a 3.2 feature
(Documented AddBot)
Tag: Source edit
 
(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}}{{DevTopicWarning|acs-botfunctions|type=an [[ACS]] function|mr=10|mrtitle=ACS functions: "AddBot" and "RemoveBot"}}
{{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|disable bot nodes]]).
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 ==