equal
deleted
inserted
replaced
626 </code> |
626 </code> |
627 |
627 |
628 == Functions to modify gears == |
628 == Functions to modify gears == |
629 |
629 |
630 === <tt>!HideHog(gearUid)</tt> === |
630 === <tt>!HideHog(gearUid)</tt> === |
631 Removes a hedgehog from the map. The hidden hedgehog can be restored with `RestoreHog(gearUid)`. |
631 Removes a hedgehog from the map. The hidden hedgehog can be restored with `RestoreHog(gearUid)`. Since 0.9.23, returns `true` on success and `false` on failure (if gear does not exist / hog is already hidden). |
632 |
632 |
633 Example: |
633 Example: |
634 |
634 |
635 <code language="lua"> gear = AddGear(...) |
635 <code language="lua"> gear = AddGear(...) |
636 HideHog(gear) -- Hide the newly created gear.</code> |
636 HideHog(gear) -- Hide the newly created gear.</code> |