# HG changeset patch # User Wuzzy # Date 1543881241 0 # Node ID cf681f30877dcbdc38f30175cd4cc43211a9138c # Parent 0322ae59b02760467666d50d5510c6328856a285 LuaAPI: AddTeam support diff -r 0322ae59b027 -r cf681f30877d LuaAPI.wiki --- 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.