equal
deleted
inserted
replaced
817 Sets the friction of the specified gear. The friction normally determines how well the gear will slide on terrain. Higher values are for increased sliding properties. `0` is for no sliding whatsoever, where `9999` is for very long slides, greater values are not recommended. |
817 Sets the friction of the specified gear. The friction normally determines how well the gear will slide on terrain. Higher values are for increased sliding properties. `0` is for no sliding whatsoever, where `9999` is for very long slides, greater values are not recommended. |
818 |
818 |
819 === <tt>!SetHealth(gearUid, health)</tt> === |
819 === <tt>!SetHealth(gearUid, health)</tt> === |
820 Sets the health of the specified gear. The “health” of a gear can refer to many things, depending on the gear type. |
820 Sets the health of the specified gear. The “health” of a gear can refer to many things, depending on the gear type. |
821 |
821 |
|
822 *Hint*: If you like to increase the health of a hedgehog with nice visual effects, consider using `HealHog` instead. |
|
823 |
822 Use cases: |
824 Use cases: |
823 |
825 |
824 * Setting the health of a hedgehog (`gtHedgehog`) to 99 |
826 * Setting the health of a hedgehog (`gtHedgehog`) to 99 |
825 * Starting the RC Plane (`gtRCPlane`) with 10 bombs |
827 * Starting the RC Plane (`gtRCPlane`) with 10 bombs |
826 * Starting flying saucer (`gtJetpack`) with only 50% fuel |
828 * Starting flying saucer (`gtJetpack`) with only 50% fuel |
847 SetHealth(gear, 0) |
849 SetHealth(gear, 0) |
848 end |
850 end |
849 end</code> |
851 end</code> |
850 |
852 |
851 === `HealHog(gearUid, healthBoost[, showMessage[, tint]])` (0.9.24) === |
853 === `HealHog(gearUid, healthBoost[, showMessage[, tint]])` (0.9.24) === |
852 Convenience function to increase the health of hogs with default effects. |
854 Convenience function to increase the health of a hedgehog with default visual effects. |
853 |
855 |
854 Increases the health of the hedgehog gear with the given ID `gearUid` by `healthBoost`, displays some healing particles at the hedgehog and shows the health increae as a message. This is similar to the behavour after taking a health crate, or getting a health boost from vampirism. |
856 Specifically, this increases the health of the hedgehog gear with the given ID `gearUid` by `healthBoost`, displays some healing particles at the hedgehog and shows the health increae as a message. This is similar to the behavour after taking a health crate, or getting a health boost from vampirism. |
855 |
857 |
856 If `showMessage` is false, no message is shown. With `tint` you can set the RGBA color of the particles (default: `0x00FF00FF`). |
858 If `showMessage` is false, no message is shown. With `tint` you can set the RGBA color of the particles (default: `0x00FF00FF`). |
857 |
859 |
858 This function does not affect the poison state, however (see `SetEffect`). |
860 This function does not affect the poison state, however (see `SetEffect`). |
859 |
861 |