LuaAPI.wiki
changeset 52 714b56de5ea1
parent 51 5ab1cf4c7194
child 53 f9e2edcce6ed
equal deleted inserted replaced
51:5ab1cf4c7194 52:714b56de5ea1
   233 </blockquote>
   233 </blockquote>
   234 Example:
   234 Example:
   235 
   235 
   236 <code lang="lua">    gear = !AddGear(…)
   236 <code lang="lua">    gear = !AddGear(…)
   237     !FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH</code>
   237     !FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH</code>
       
   238 === <tt>!HogTurnLeft(gearUid, boolean)</tt> ===
       
   239 
       
   240 <blockquote>Faces the specified hog left or right.
       
   241 </blockquote>
       
   242 Example:
       
   243 
       
   244 <code lang="lua">    HogTurnLeft(CurrentHedgehog, true) -- turns CurrentHedgehog left 
       
   245     HogTurnLeft(CurrentHedgehog, false) -- turns CurrentHedgehog right</code>
   238 === <tt>!SetGearPosition(gearUid, x, y)</tt> ===
   246 === <tt>!SetGearPosition(gearUid, x, y)</tt> ===
   239 
   247 
   240 <blockquote>Places the specified gear exactly at the position (x,y).
   248 <blockquote>Places the specified gear exactly at the position (x,y).
   241 </blockquote>
   249 </blockquote>
   242 === <tt>!SetAmmo(ammoType, count, probability, delay, numberInCrate)</tt> ===
   250 === <tt>!SetAmmo(ammoType, count, probability, delay, numberInCrate)</tt> ===