# HG changeset patch # User almikes@aol.com # Date 1417575156 0 # Node ID 41bd558039c0760dea60d86c8e45d506f44a5204 # Parent 4e1c166740b09d524bc9474139cbd1426ce06aa6 Add SetWeapon and SetNextWeapon 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.