LuaAPI.wiki
changeset 1578 80a793600049
parent 1577 f1af9c28ce70
child 1579 00bcd6b833a5
equal deleted inserted replaced
1577:f1af9c28ce70 1578:80a793600049
   471 
   471 
   472 === <tt>!SpawnFakeUtilityCrate(x, y, explode, poison) </tt> ===
   472 === <tt>!SpawnFakeUtilityCrate(x, y, explode, poison) </tt> ===
   473 Same as `SpawnFakeAmmoCrate`, except the crate will look like an utility crate.
   473 Same as `SpawnFakeAmmoCrate`, except the crate will look like an utility crate.
   474 
   474 
   475 === <tt>!AddHog(hogname, botlevel, health, hat)</tt> ===
   475 === <tt>!AddHog(hogname, botlevel, health, hat)</tt> ===
   476 Adds a new hedgehog for current team (last created one with the `AddTeam` function), with bot level and specified health, also hat.
   476 Adds a new hedgehog for current team (last created one with the `AddTeam` function), with a bot level, an initial health and a hat.
       
   477 
   477 `botlevel` ranges from `0` to `5`, where `0` denotes a human player and `1` to `5` denote the skill level of a bot, where `1` is strongest and `5` is the weakest. Note that this is the reverse order of how the bot level is displayed in the game. Note that mixing human-controlled and computer-controlled hedgehogs in the same team is not permitted, but it is permitted to use different computer difficulty levels in the same team.
   478 `botlevel` ranges from `0` to `5`, where `0` denotes a human player and `1` to `5` denote the skill level of a bot, where `1` is strongest and `5` is the weakest. Note that this is the reverse order of how the bot level is displayed in the game. Note that mixing human-controlled and computer-controlled hedgehogs in the same team is not permitted, but it is permitted to use different computer difficulty levels in the same team.
   478 
   479 
   479 *Warning*: This only works in singleplayer mode (e.g. missions). Also, Hedgewars only supports up to 48 hedgehogs in a game. If you add more hedgehogs or call this function in multiplayer mode, Hedgewars might fail.
   480 *Warning*: This only works in singleplayer mode (e.g. missions). Also, Hedgewars only supports up to 48 hedgehogs in a game. If you add more hedgehogs or call this function in multiplayer mode, Hedgewars might fail.
   480 
   481 
   481 Example:
   482 Example: