LuaAPI.wiki
changeset 54 2017dc6bc149
parent 53 f9e2edcce6ed
child 55 ef26ff619aea
equal deleted inserted replaced
53:f9e2edcce6ed 54:2017dc6bc149
   239 
   239 
   240 <blockquote>Faces the specified hog left or right.
   240 <blockquote>Faces the specified hog left or right.
   241 </blockquote>
   241 </blockquote>
   242 Example:
   242 Example:
   243 
   243 
   244 <code lang="lua">    !HogTurnLeft(CurrentHedgehog, true) -- turns CurrentHedgehog left 
   244 <code lang="lua">    !HogTurnLeft(!CurrentHedgehog, true) -- turns !CurrentHedgehog left 
   245     !HogTurnLeft(CurrentHedgehog, false) -- turns CurrentHedgehog right</code>
   245     !HogTurnLeft(!CurrentHedgehog, false) -- turns !CurrentHedgehog right</code>
   246 === <tt>!SetGearPosition(gearUid, x, y)</tt> ===
   246 === <tt>!SetGearPosition(gearUid, x, y)</tt> ===
   247 
   247 
   248 <blockquote>Places the specified gear exactly at the position (x,y).
   248 <blockquote>Places the specified gear exactly at the position (x,y).
   249 </blockquote>
   249 </blockquote>
   250 === <tt>!SetAmmo(ammoType, count, probability, delay, numberInCrate)</tt> ===
   250 === <tt>!SetAmmo(ammoType, count, probability, delay, numberInCrate)</tt> ===