equal
deleted
inserted
replaced
590 <code language="lua"> local gear = AddHog(...) |
590 <code language="lua"> local gear = AddHog(...) |
591 HideHog(gear) -- Hide the newly created gear. |
591 HideHog(gear) -- Hide the newly created gear. |
592 RestoreHog(gear) -- Restore the newly hidden gear.</code> |
592 RestoreHog(gear) -- Restore the newly hidden gear.</code> |
593 |
593 |
594 === `IsHogLocal(gearUid)` (0.9.23) === |
594 === `IsHogLocal(gearUid)` (0.9.23) === |
595 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. |
595 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. |
|
596 |
|
597 If the game has a mission team (see `AddMissionTeam`), this function behaves a little different: It only may return `true` for hogs in the same clan as the mission team and always returns `false` for hogs from other clans. |
|
598 |
|
599 Returns `nil` if `gearUid` is invalid. |
596 |
600 |
597 This is perfect to hide certain captions like weapon messages from enemy eyes. |
601 This is perfect to hide certain captions like weapon messages from enemy eyes. |
598 |
602 |
599 == Special gear actions == |
603 == Special gear actions == |
600 === `GetFollowGear()` === |
604 === `GetFollowGear()` === |