# HG changeset patch
# User Wuzzy
# Date 1570550646 -3600
# Node ID 48fb7b41cccf02f932de469488be5c3d3070b9e2
# Parent 1098683f138fe375b7d7ebc3102319f757127a45
LuaGears: SpawnFake*Crate optional arguments
diff -r 1098683f138f -r 48fb7b41cccf LuaGears.wiki
--- a/LuaGears.wiki Tue Oct 08 16:58:22 2019 +0100
+++ b/LuaGears.wiki Tue Oct 08 17:04:06 2019 +0100
@@ -108,21 +108,23 @@
SetAmmo(amLaserSight, 0, 0, 0, 1)
SpawnUtilityCrate(0, 0, amLaserSight)
-=== `SpawnFakeAmmoCrate(x, y, explode, poison) ` ===
+=== `SpawnFakeAmmoCrate(x, y [, explode [, poison]]) ` ===
Spawns a crate at the specified coordinates which looks exactly like a real ammo 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.
+
+`explode` and `poison` are booleans. They are optional since 1.0.0 but mandatory until 0.9.25.
+
+If `explode` is `true`, the crate will explode when collected (default: `false`).
+If `poison` is `true`, the collector will be poisoned (default: `false`).
Example:
SpawnFakeAmmoCrate(500, 432, false, false) -- Spawns a fake ammo crate at the coordinates (500, 434) without explosion and poison.
-=== `SpawnFakeHealthCrate(x, y, explode, poison) ` ===
+=== `SpawnFakeHealthCrate(x, y [, explode [, poison]]) ` ===
Same as `SpawnFakeAmmoCrate`, except the crate will look like a health crate.
-=== `SpawnFakeUtilityCrate(x, y, explode, poison) ` ===
+=== `SpawnFakeUtilityCrate(x, y [, explode [, poison]]) ` ===
Same as `SpawnFakeAmmoCrate`, except the crate will look like an utility crate.
== Position and velocity ==