# HG changeset patch # User almikes@aol.com # Date 1417570095 0 # Node ID 0b7f8aed3c5e9c4b9ea07b7a257cbdf310bc3f00 # Parent d92d626f9c468475837a6c555e9faadb8db24d03 Documented the following functions: SpawnFakeAmmoCrate SpawnFakeHealthCrate SpawnFakeUtilityCrate diff -r d92d626f9c46 -r 0b7f8aed3c5e LuaAPI.wiki --- a/LuaAPI.wiki Tue Dec 02 03:40:45 2014 +0000 +++ b/LuaAPI.wiki Wed Dec 03 01:28:15 2014 +0000 @@ -295,6 +295,34 @@ SetAmmo(amLaserSight, 0, 0, 0, 1) SpawnUtilityCrate(0, 0, amLaserSight) + +=== !SpawnFakeAmmoCrate(x, y, explode, poison) === + +Spawns a crate 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. +`explode` and `poison` are booleans. +If `explode` is `true`, the crate will explode when collected. +If `poison` is `true`, the collector will be poisoned. + +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) === + +Spawns a crate 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. +`explode` and `poison` are booleans. +If `explode` is `true`, the crate will explode when collected. +If `poison` is `true`, the collector will be poisoned. + +=== !SpawnFakeUtilityCrate(x, y, explode, poison) === + +Spawns a crate 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. +`explode` and `poison` are booleans. +If `explode` is `true`, the crate will explode when collected. +If `poison` is `true`, the collector will be poisoned. + + === !AddTeam(teamname, color, grave, fort, voicepack, flag) ===
Adds a new team. Note that this can only be done in onGameInit(), not at a later time. First argument is the team name followed by color, grave, fort, voicepack and flag settings.