Edited wiki page LuaAPI through web user interface.
authorszabibibi@gmail.com
Wed, 22 Aug 2012 16:51:35 +0000
changeset 243 ac34d3763a17
parent 242 4bd883e7d479
child 244 74d74086e49b
Edited wiki page LuaAPI through web user interface.
LuaAPI.wiki
--- a/LuaAPI.wiki	Sat Aug 18 23:55:58 2012 +0000
+++ b/LuaAPI.wiki	Wed Aug 22 16:51:35 2012 +0000
@@ -371,6 +371,23 @@
 
 == Functions to modify gears ==
 
+=== <tt>!HideHog(gearUid)</tt> ===
+
+<blockquote>Removes a hedgehog from the map. The hidden hedgehog can be restored with RestoreHog. The current hedgehog cannot be hidden!</blockquote>
+Example: 
+
+<code lang="lua">    gear = !AddGear(...)
+     !HideHog(gear) -- Hide the newly created gear.</code>
+
+=== <tt>!RestoreHog(gearUid)</tt> ===
+
+<blockquote>Restores a previously hidden hedgehog.</blockquote>
+Example: 
+
+<code lang="lua">    gear = !AddGear(...)
+     !HideHog(gear) -- Hide the newly created gear.
+     !RestoreHog(gear) -- Restore the newly hidden gear.</code>
+
 === <tt>!DeleteGear(gearUid)</tt> ===
 
 <blockquote>Deletes a Gear</blockquote>