LuaAPI.wiki
changeset 53 f9e2edcce6ed
parent 52 714b56de5ea1
child 54 2017dc6bc149
equal deleted inserted replaced
52:714b56de5ea1 53:f9e2edcce6ed
   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> ===