# HG changeset patch # User Wuzzy # Date 1505949726 -3600 # Node ID 958b671fe4d029a83f7d0156eb17d8b5a9eab184 # Parent 87a758104deabd8eb50dc73ac6bab7523fe56f3f LuaAPI: Explain infinite amout for SpawnAmmoCrate diff -r 87a758104dea -r 958b671fe4d0 LuaAPI.wiki --- a/LuaAPI.wiki Thu Sep 21 00:18:41 2017 +0100 +++ b/LuaAPI.wiki Thu Sep 21 00:22:06 2017 +0100 @@ -390,7 +390,7 @@ 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. === !SpawnAmmoCrate(x, y, ammoType [, amount]) === -Spawns an ammo crate at the specified position with content of ammoType (see [AmmoTypes Ammo Types]). If `ammoType` is set to `amNothing`, a random weapon (out of the available weapons from the weapon scheme) will be selected. If `x` and `y` are set to 0, the crate will spawn on a random position (but always on land). The `amount` parameter specifies the amount of ammo contained in the crate. By default, the value set by `SetAmmo` is used. If `SetAmmo` has not been used for this ammo type, an ammo-type-dependent default value is used. +Spawns an ammo crate at the specified position with content of ammoType (see [AmmoTypes Ammo Types]). If `ammoType` is set to `amNothing`, a random weapon (out of the available weapons from the weapon scheme) will be selected. If `x` and `y` are set to 0, the crate will spawn on a random position (but always on land). The `amount` parameter specifies the amount of ammo contained in the crate. If `amount` is `nil` or `0`, the value set by `SetAmmo` is used. If `SetAmmo` has not been used for this ammo type, an ammo-type-dependent default value is used. If ´amount` is equal to or greater than `100` or greater, the amount is infinite. Because by default settings the number of ammo in crates is zero it has to be increased to at least one with `SetAmmo` first, see the example: Example: