LuaAPI: Discourage negative health for health crates
authorWuzzy
Fri, 23 Feb 2018 16:10:33 +0000
changeset 1235 dae4580eca94
parent 1234 60346a2ffb4c
child 1236 5011c573bded
LuaAPI: Discourage negative health for health crates
LuaAPI.wiki
--- a/LuaAPI.wiki	Wed Feb 21 17:19:26 2018 +0000
+++ b/LuaAPI.wiki	Fri Feb 23 16:10:33 2018 +0000
@@ -407,7 +407,7 @@
 </code>
 
 === <tt>!SpawnHealthCrate(x, y, [, health])</tt> ===
-Spawns a health crate at the specified position. If `x` and `y` are set to 0, the crate will spawn on a random position (but always on land). Set `health` for the initial health contained in the health crate. If not set, the default health (`HealthCaseAmount`) is used.
+Spawns a health crate at the specified position. If `x` and `y` are set to 0, the crate will spawn on a random position (but always on land). Set `health` for the initial health contained in the health crate. If not set, the default health (`HealthCaseAmount`) is used. Do not use a negative value for `health`.
 
 === <tt>!SpawnSupplyCrate(x, y, ammoType [, amount])</tt> (0.9.24) ===
 Spawns an ammo or utility crate at the specified position with the given ammo type and an optional amount (default: 1). The crate type is chosen automatically based on the ammo type.