equal
deleted
inserted
replaced
500 === <tt>!AddMissionHog(health)</tt> (0.9.25) === |
500 === <tt>!AddMissionHog(health)</tt> (0.9.25) === |
501 Add a hedgehog for the current team, using the player-chosen team identity when playing in singleplayer missions. The “current team” is the last team that was added with `AddMissionTeam` or `AddTeam`. |
501 Add a hedgehog for the current team, using the player-chosen team identity when playing in singleplayer missions. The “current team” is the last team that was added with `AddMissionTeam` or `AddTeam`. |
502 |
502 |
503 The name and hat match the player's team definition. The hog is also always player-controlled. |
503 The name and hat match the player's team definition. The hog is also always player-controlled. |
504 |
504 |
505 Example: |
505 Examples: |
506 <code language="lua">-- Add player team with 3 hogs |
506 <code language="lua">-- Add player team with 3 hogs |
507 AddMissionTeam(-1) |
507 AddMissionTeam(-1) |
508 AddMissionHog(100) |
508 AddMissionHog(100) |
509 AddMissionHog(100) |
509 AddMissionHog(100) |
510 AddMissionHog(100)</code> |
510 AddMissionHog(100)</code> |
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 |
1421 Use `AddMissionHog` or `AddHog` afterwards to add hedgehogs for this team. You can mix `AddMissionHog` and `AddHog` as you wish. |
1421 Use `AddMissionHog` or `AddHog` afterwards to add hedgehogs for this team. You can mix `AddMissionHog` and `AddHog` as you wish. |
1422 |
1422 |
1423 * `color`: See `AddTeam`. |
|
1424 |
|
1425 Example: |
1423 Example: |
1426 <code language="lua">-- Add mission team with default clan color |
1424 <code language="lua">-- Add mission team with default clan color |
1427 AddMissionTeam(-1)</code> |
1425 AddMissionTeam(-1)</code> |
1428 |
1426 |
1429 ==== <tt>!GetTeamName(teamIdx)</tt> (0.9.24) ==== |
1427 ==== <tt>!GetTeamName(teamIdx)</tt> (0.9.24) ==== |