LuaAPI.wiki
changeset 1235 dae4580eca94
parent 1232 4ac63a5c0184
child 1240 7c0f5e773736
equal deleted inserted replaced
1234:60346a2ffb4c 1235:dae4580eca94
   405 <code language="lua">  -- adds an non-critical explosion at position 1000,1000. Returns 0 if it was not created.
   405 <code language="lua">  -- adds an non-critical explosion at position 1000,1000. Returns 0 if it was not created.
   406     vgear = AddVisualGear(1000, 1000, vgtExplosion, 0, false) 
   406     vgear = AddVisualGear(1000, 1000, vgtExplosion, 0, false) 
   407 </code>
   407 </code>
   408 
   408 
   409 === <tt>!SpawnHealthCrate(x, y, [, health])</tt> ===
   409 === <tt>!SpawnHealthCrate(x, y, [, health])</tt> ===
   410 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.
   410 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`.
   411 
   411 
   412 === <tt>!SpawnSupplyCrate(x, y, ammoType [, amount])</tt> (0.9.24) ===
   412 === <tt>!SpawnSupplyCrate(x, y, ammoType [, amount])</tt> (0.9.24) ===
   413 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.
   413 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.
   414 Otherwise, this function behaves like `SpawnAmmoCrate`.
   414 Otherwise, this function behaves like `SpawnAmmoCrate`.
   415 
   415