LuaGameplay.wiki
changeset 1942 b36285e8e3f5
parent 1940 37a2cc377a4f
child 1950 f06aa24697b7
equal deleted inserted replaced
1941:c11105f7579a 1942:b36285e8e3f5
   402 Adds a new team using the player-chosen team identity when playing a singleplayer mission. Does not work in multiplayer.
   402 Adds a new team using the player-chosen team identity when playing a singleplayer mission. Does not work in multiplayer.
   403 
   403 
   404 This function is very similar to `AddTeam`. Team settings like team name and flag will be taken from the player-chosen team.
   404 This function is very similar to `AddTeam`. Team settings like team name and flag will be taken from the player-chosen team.
   405 You only need to specify the clan color, which has the same meaning as in `AddTeam`.
   405 You only need to specify the clan color, which has the same meaning as in `AddTeam`.
   406 
   406 
   407 This function returns two values: `<real team name>, <team index>`. For functions that need the team name as input (lke `DismissTeam`), you must use this returned `<real team name>`.
   407 This function returns two values: `<team name>, <team index>`. For functions that need the team name as input (lke `DismissTeam`), you must use this returned `<team name>`.
   408 
   408 
   409 Use `AddMissionHog` or `AddHog` afterwards to add hedgehogs for this team. You can mix `AddMissionHog` and `AddHog` as you wish.
   409 Use `AddMissionHog` or `AddHog` afterwards to add hedgehogs for this team. You can mix `AddMissionHog` and `AddHog` as you wish.
   410 
   410 
   411 Example:
   411 Example:
   412 <code language="lua">-- Add mission team with default clan color
   412 <code language="lua">-- Add mission team with default clan color