LuaAPI.wiki
changeset 1241 50cb37fde767
parent 1240 7c0f5e773736
child 1243 770aa6d54ae2
equal deleted inserted replaced
1240:7c0f5e773736 1241:50cb37fde767
   442 
   442 
   443 <code language="lua">SpawnFakeAmmoCrate(500, 432, false, false) -- Spawns a fake ammo crate at the coordinates (500, 434) without explosion and poison.
   443 <code language="lua">SpawnFakeAmmoCrate(500, 432, false, false) -- Spawns a fake ammo crate at the coordinates (500, 434) without explosion and poison.
   444 </code>
   444 </code>
   445 
   445 
   446 === <tt>!SpawnFakeHealthCrate(x, y, explode, poison) </tt> ===
   446 === <tt>!SpawnFakeHealthCrate(x, y, explode, poison) </tt> ===
   447 Spawns a crate at the specified coordinates which looks exactly like a real health crate but it will not heal the player. It can be use useful for scripted events or to create a trap. If `x` and `y` are set to 0, the crate will spawn on a random position (but always on land).
   447 Same as `SpawnFakeAmmoCrate`, except the crate will look like a health crate.
   448 `explode` and `poison` are booleans.
       
   449 If `explode` is `true`, the crate will explode when collected.
       
   450 If `poison` is `true`, the collector will be poisoned.
       
   451 
   448 
   452 === <tt>!SpawnFakeUtilityCrate(x, y, explode, poison) </tt> ===
   449 === <tt>!SpawnFakeUtilityCrate(x, y, explode, poison) </tt> ===
   453 Spawns a crate at the specified coordinates which looks exactly like a real utility crate but contains not any ammo. It can be use useful for scripted events or to create a trap. If `x` and `y` are set to 0, the crate will spawn on a random position (but always on land).
   450 Same as `SpawnFakeAmmoCrate`, except the crate will look like an utility crate.
   454 `explode` and `poison` are booleans.
       
   455 If `explode` is `true`, the crate will explode when collected.
       
   456 If `poison` is `true`, the collector will be poisoned.
       
   457 
   451 
   458 === <tt>!AddHog(hogname, botlevel, health, hat)</tt> ===
   452 === <tt>!AddHog(hogname, botlevel, health, hat)</tt> ===
   459 Adds a new hedgehog for current team (last created one with the `AddTeam` function), with bot level and specified health, also hat.
   453 Adds a new hedgehog for current team (last created one with the `AddTeam` function), with bot level and specified health, also hat.
   460 `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.
   454 `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.
   461 
   455