# HG changeset patch # User Wuzzy # Date 1546380027 0 # Node ID 6bf2e6deedb012434e60e4a25d3784f7678c29da # Parent d3bebda2cdfd18b1be5333dae41e64c29948d279 LuaAPI: Fix some bugs diff -r d3bebda2cdfd -r 6bf2e6deedb0 LuaAPI.wiki --- a/LuaAPI.wiki Tue Jan 01 21:40:03 2019 +0000 +++ b/LuaAPI.wiki Tue Jan 01 22:00:27 2019 +0000 @@ -502,6 +502,7 @@ The name and hat match the player's team definition. The hog is also always player-controlled. +Example: -- Add player team with 3 hogs AddMissionTeam(-1) AddMissionHog(100) @@ -1411,12 +1412,11 @@ --[[ Adds a new team with name “team 1”, the first default color (usually red), the grave “Simple”, the fort “Tank” the voicepack “Default” and the flag “hedgewars”. ]] -=== !AddMissionTeam(color) (0.9.25) === -Adds a new team using the player-chosen team identity when playing a singleplayer mission. -Does not work in multiplayer. +==== !AddMissionTeam(color) (0.9.25) ===) +Adds a new team using the player-chosen team identity when playing a singleplayer mission. Does not work in multiplayer. -This function is very similar to `AddTeam`. Team settings like name or flag do not need to be specified, they will be taken from the player-chosen team. -You only need to specify the color, which works like in `AddTeam`. +This function is very similar to `AddTeam`. Team settings like team name and flag will be taken from the player-chosen team. +You only need to specify the clan color, which has the same meaning as in `AddTeam`. Use `AddMissionHog` or `AddHog` afterwards to add hedgehogs for this team. You can mix `AddMissionHog` and `AddHog` as you wish.