# HG changeset patch # User almikes@aol.com # Date 1417576006 0 # Node ID e9b65daecbcf3b66533eaf2c5911bc74d848b175 # Parent 36537eaf680c0b581f0b62771393c112df21af23 Move SetNextWeapon in text diff -r 36537eaf680c -r e9b65daecbcf LuaAPI.wiki --- a/LuaAPI.wiki Wed Dec 03 03:03:58 2014 +0000 +++ b/LuaAPI.wiki Wed Dec 03 03:06:46 2014 +0000 @@ -637,6 +637,11 @@ AddAmmo(CurrentHedgehog, amBazooka, 1) -- give the CurrentHedgehog a bazooka SetWeapon(amBazooka) -- select the Bazooka. + +==== !SetNextWeapon() (0.9.21) ==== +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. + + === !SetHogHat(gearUid, hat) ===
Sets the hat of the specified hedgehog gear @@ -758,12 +763,6 @@Returns the currently selected [AmmoTypes Ammo Type].-==== SetWeapon(ammoType) (0.9.21) ==== -This function sets the weapon of the current hedgehog to the specified [AmmoTypes Ammo Type]. - -==== SetNextWeapon() (0.9.21) ==== -This function makes the current hedgehog switch to the next weapon in the weapon list. It can be used for example in trainings to pre-select a weapon. - ==== !SwitchHog(gearUid) (0.9.16) ====This function will switch to the hedgehog with the specified Uid.