LuaAPI.wiki
changeset 1639 cf681f30877d
parent 1638 0322ae59b027
child 1640 b91b4d97132d
--- a/LuaAPI.wiki	Mon Dec 03 23:52:35 2018 +0000
+++ b/LuaAPI.wiki	Mon Dec 03 23:54:01 2018 +0000
@@ -1335,6 +1335,7 @@
 
 Adds a new team. Note that this can only be done in `onGameInit`, not at a later time.
 You *must* add at least one hedgehog with `AddHog` after calling this. The engine does not support empty teams.
+`AddTeam` is only supported for singleplayer missions. You *must not* use this function in multiplayer.
 
 Arguments:
 
@@ -1345,8 +1346,6 @@
  * `voicepack`: The name of the team’s voice pack (equals the directory name)
  * `flag`: Optional argument for the name of the team’s flag (equals file name without the suffix). If set to `nil`, the flag “hedgewars” is used.
 
-*Note*: This works only for singleplayer training missions for now and will desync multiplayer games.
-
 ===== Clan color =====
 Each team must have a color. The color also determines clan membership: Teams with equal color are in the same clan.