LuaAPI.wiki
changeset 1696 90dc2f42db2b
parent 1695 6bf2e6deedb0
child 1697 699a39df73c5
equal deleted inserted replaced
1695:6bf2e6deedb0 1696:90dc2f42db2b
  1410 
  1410 
  1411 <code language="lua">AddTeam("team 1", -1, "Simple", "Tank", "Default", "hedgewars")
  1411 <code language="lua">AddTeam("team 1", -1, "Simple", "Tank", "Default", "hedgewars")
  1412 --[[ Adds a new team with name “team 1”, the first default color (usually red), the grave “Simple”,
  1412 --[[ Adds a new team with name “team 1”, the first default color (usually red), the grave “Simple”,
  1413 the fort “Tank” the voicepack “Default” and the flag “hedgewars”. ]]</code>
  1413 the fort “Tank” the voicepack “Default” and the flag “hedgewars”. ]]</code>
  1414 
  1414 
  1415 ==== <tt>!AddMissionTeam(color)</tt> (0.9.25) ===)
  1415 ==== <tt>!AddMissionTeam(color)</tt> (0.9.25) ====
  1416 Adds a new team using the player-chosen team identity when playing a singleplayer mission. Does not work in multiplayer.
  1416 Adds a new team using the player-chosen team identity when playing a singleplayer mission. Does not work in multiplayer.
  1417 
  1417 
  1418 This function is very similar to `AddTeam`. Team settings like team name and flag will be taken from the player-chosen team.
  1418 This function is very similar to `AddTeam`. Team settings like team name and flag will be taken from the player-chosen team.
  1419 You only need to specify the clan color, which has the same meaning as in `AddTeam`.
  1419 You only need to specify the clan color, which has the same meaning as in `AddTeam`.
  1420 
  1420