# HG changeset patch
# User Wuzzy
# Date 1519470816 0
# Node ID 50cb37fde767e7248e2be52f1ee6441b9e1d1374
# Parent 7c0f5e773736295114dcc2326d13a5b14596b662
LuaAPI: Simplify SpawnFakeHealthCrate and SpawnFakeUtilityCrate
diff -r 7c0f5e773736 -r 50cb37fde767 LuaAPI.wiki
--- a/LuaAPI.wiki Sat Feb 24 11:11:20 2018 +0000
+++ b/LuaAPI.wiki Sat Feb 24 11:13:36 2018 +0000
@@ -444,16 +444,10 @@
=== !SpawnFakeHealthCrate(x, y, explode, poison) ===
-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).
-`explode` and `poison` are booleans.
-If `explode` is `true`, the crate will explode when collected.
-If `poison` is `true`, the collector will be poisoned.
+Same as `SpawnFakeAmmoCrate`, except the crate will look like a health crate.
=== !SpawnFakeUtilityCrate(x, y, explode, poison) ===
-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).
-`explode` and `poison` are booleans.
-If `explode` is `true`, the crate will explode when collected.
-If `poison` is `true`, the collector will be poisoned.
+Same as `SpawnFakeAmmoCrate`, except the crate will look like an utility crate.
=== !AddHog(hogname, botlevel, health, hat) ===
Adds a new hedgehog for current team (last created one with the `AddTeam` function), with bot level and specified health, also hat.