LuaAPI: Simplify SpawnFakeHealthCrate and SpawnFakeUtilityCrate
authorWuzzy
Sat, 24 Feb 2018 11:13:36 +0000
changeset 1241 50cb37fde767
parent 1240 7c0f5e773736
child 1242 c307fe8fb975
LuaAPI: Simplify SpawnFakeHealthCrate and SpawnFakeUtilityCrate
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 @@
 </code>
 
 === <tt>!SpawnFakeHealthCrate(x, y, explode, poison) </tt> ===
-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.
 
 === <tt>!SpawnFakeUtilityCrate(x, y, explode, poison) </tt> ===
-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.
 
 === <tt>!AddHog(hogname, botlevel, health, hat)</tt> ===
 Adds a new hedgehog for current team (last created one with the `AddTeam` function), with bot level and specified health, also hat.