LuaAPI.wiki
changeset 52 714b56de5ea1
parent 51 5ab1cf4c7194
child 53 f9e2edcce6ed
--- 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).