LuaAPI.wiki
changeset 243 ac34d3763a17
parent 209 26805ae2a319
child 244 74d74086e49b
equal deleted inserted replaced
242:4bd883e7d479 243:ac34d3763a17
   369 <code lang="lua">    !GetVisualGearValues(vgUid) -- return visual gear values
   369 <code lang="lua">    !GetVisualGearValues(vgUid) -- return visual gear values
   370 </code>
   370 </code>
   371 
   371 
   372 == Functions to modify gears ==
   372 == Functions to modify gears ==
   373 
   373 
       
   374 === <tt>!HideHog(gearUid)</tt> ===
       
   375 
       
   376 <blockquote>Removes a hedgehog from the map. The hidden hedgehog can be restored with RestoreHog. The current hedgehog cannot be hidden!</blockquote>
       
   377 Example: 
       
   378 
       
   379 <code lang="lua">    gear = !AddGear(...)
       
   380      !HideHog(gear) -- Hide the newly created gear.</code>
       
   381 
       
   382 === <tt>!RestoreHog(gearUid)</tt> ===
       
   383 
       
   384 <blockquote>Restores a previously hidden hedgehog.</blockquote>
       
   385 Example: 
       
   386 
       
   387 <code lang="lua">    gear = !AddGear(...)
       
   388      !HideHog(gear) -- Hide the newly created gear.
       
   389      !RestoreHog(gear) -- Restore the newly hidden gear.</code>
       
   390 
   374 === <tt>!DeleteGear(gearUid)</tt> ===
   391 === <tt>!DeleteGear(gearUid)</tt> ===
   375 
   392 
   376 <blockquote>Deletes a Gear</blockquote>
   393 <blockquote>Deletes a Gear</blockquote>
   377 Example:
   394 Example:
   378 
   395