diff -r 093dbedcb57a -r c0cade1e3676 LuaAPI.wiki --- a/LuaAPI.wiki Mon Apr 16 23:39:41 2018 +0100 +++ b/LuaAPI.wiki Tue Apr 17 00:47:50 2018 +0100 @@ -864,7 +864,7 @@ || `heResurrectable` || Whether to resurrect the hog on death || With a non-zero value, the hedgehog will be resurrected and teleported to a random location on death. `0` disables this. || || `heResurrected` || Whether the hedgehog has been resurrected once. This is only a subtle graphical effect. || With a non-zero value, the hedgehog was resurrected, `0` otherwise. || || `heFrozen` || Freeze level. Frozen hedgehogs skip turn, are heavy and take half damage || The hog is considered frozen if the value is `256` or higher, otherwise not. A number of `256` or higher denotes “how frozen” the hedgehog is, i.e. how long it takes to melt. The freezer sets this to `199999` initially. The value will be reduced by `50000` each round. Being hit by a flame reduces this number by `1000`. The values `0` to `255` are used for the freeze/melt animations. || -|| `heArtillery` || 0.9.24 or later! If enabled, the hedgehog can't walk. || `0` = disabled. `1` = permanently enabled. `2` = temporarily enabled (used by sniper rifle between shots) || +|| `heArtillery` || If enabled, the hedgehog can't walk (since 0.9.24). || `0` = disabled. `1` = permanently enabled. `2` = temporarily enabled (used by sniper rifle between shots) || Example (sets all bots poisoned with poison damage of 1): @@ -1191,11 +1191,14 @@ ==== !SetWeapon(ammoType) ==== Sets the selected weapon of `CurrentHedgehog` to one of the [AmmoTypes Ammo Type]. -Example: +Examples: - AddAmmo(CurrentHedgehog, amBazooka, 1) -- give the CurrentHedgehog a bazooka - SetWeapon(amBazooka) -- select the Bazooka. + SetWeapon(amBazooka) -- select the bazooka (if hog has one) + + + SetWeapon(amNothing) -- unselects the weapon. + ==== !SetNextWeapon() ==== This function makes the current hedgehog switch to the next weapon in list of available weapons. It can be used for example in trainings to pre-select a weapon.