diff -r 4e1c166740b0 -r 41bd558039c0 LuaAPI.wiki --- a/LuaAPI.wiki Wed Dec 03 02:45:10 2014 +0000 +++ b/LuaAPI.wiki Wed Dec 03 02:52:36 2014 +0000 @@ -758,6 +758,12 @@
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.