Edited wiki page LuaAPI through web user interface.
authorRedGrinner
Mon, 06 Dec 2010 15:00:01 +0000
changeset 52 714b56de5ea1
parent 51 5ab1cf4c7194
child 53 f9e2edcce6ed
Edited wiki page LuaAPI through web user interface.
LuaAPI.wiki
--- a/LuaAPI.wiki	Mon Dec 06 14:42:31 2010 +0000
+++ b/LuaAPI.wiki	Mon Dec 06 15:00:01 2010 +0000
@@ -235,6 +235,14 @@
 
 <code lang="lua">    gear = !AddGear(…)
     !FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH</code>
+=== <tt>!HogTurnLeft(gearUid, boolean)</tt> ===
+
+<blockquote>Faces the specified hog left or right.
+</blockquote>
+Example:
+
+<code lang="lua">    HogTurnLeft(CurrentHedgehog, true) -- turns CurrentHedgehog left 
+    HogTurnLeft(CurrentHedgehog, false) -- turns CurrentHedgehog right</code>
 === <tt>!SetGearPosition(gearUid, x, y)</tt> ===
 
 <blockquote>Places the specified gear exactly at the position (x,y).