Added entries for SetHogTeamName, SetWeapon
authorRedGrinner@gmail.com
Tue, 02 Dec 2014 03:34:56 +0000
changeset 398 1f9f7fb00be3
parent 397 26d6c6c90181
child 399 d92d626f9c46
Added entries for SetHogTeamName, SetWeapon
LuaAPI.wiki
--- a/LuaAPI.wiki	Tue Oct 28 22:09:37 2014 +0000
+++ b/LuaAPI.wiki	Tue Dec 02 03:34:56 2014 +0000
@@ -566,6 +566,20 @@
 
 <blockquote>Sets the name of the specified hedgehog gear
 </blockquote>
+=== <tt>!SetHogTeamName(gearUid, name)</tt> ===
+
+<blockquote>Sets the team name of the specified hedgehog gear
+</blockquote>
+=== <tt>!SetWeapon(ammoType)</tt> ===
+
+<blockquote>Sets the selected weapon of CurrentHedgehog to one of the [AmmoTypes Ammo Type].
+
+<b>Example:</b>
+
+<code lang="lua">
+  AddAmmo(CurrentHedgehog, amBazooka, 1) -- give the CurrentHedgehog a bazooka
+  SetWeapon(amBazooka) -- select the Bazooka.</code>
+</blockquote>
 === <tt>!SetHogHat(gearUid, hat)</tt> ===
 
 <blockquote>Sets the hat of the specified hedgehog gear