equal
deleted
inserted
replaced
519 |
519 |
520 === <tt>!GetAmmoCount(gearUid, ammoType)</tt> (0.9.16) === |
520 === <tt>!GetAmmoCount(gearUid, ammoType)</tt> (0.9.16) === |
521 Returns the ammo count of the specified ammo type for the specified hedgehog gear. |
521 Returns the ammo count of the specified ammo type for the specified hedgehog gear. |
522 |
522 |
523 === <tt>!IsHogLocal(gearUid)</tt> (0.9.23) === |
523 === <tt>!IsHogLocal(gearUid)</tt> (0.9.23) === |
524 Returns `true` if the specified hedgehog gear is controlled by a human player on the computer on which Hedgewars runs on (i.e. not over a computer over the network). Returns `false` otherwise. Returns `nil` if `gearUid` is invalid. |
524 Returns `true` if the specified hedgehog gear is controlled by a human player on the computer on which Hedgewars runs on (i.e. not over a computer over the network). Also returns `true` if the hog is a member of any of the local clans. Returns `false` otherwise. Returns `nil` if `gearUid` is invalid. |
|
525 |
|
526 This is perfect to hide certain captions like weapon messages from enemy eyes. |
525 |
527 |
526 === <tt>!GetGearTarget(gearUid, x, y) (0.9.16)</tt> === |
528 === <tt>!GetGearTarget(gearUid, x, y) (0.9.16)</tt> === |
527 Returns the x and y coordinate of target-based weapons/utilities. |
529 Returns the x and y coordinate of target-based weapons/utilities. |
528 <b>Note:</b>: This can’t be used in `onGearAdd()` but must be called after gear creation. |
530 <b>Note:</b>: This can’t be used in `onGearAdd()` but must be called after gear creation. |
529 |
531 |