# HG changeset patch
# User Wuzzy
# Date 1518376266 0
# Node ID 0d33477246bc6d8acc791cd250143d34d46c1459
# Parent e69155e475c8ca38767287a4fb33a0b0d1c50eec
LuaAPI: update IsHogLocal
diff -r e69155e475c8 -r 0d33477246bc LuaAPI.wiki
--- a/LuaAPI.wiki Sun Feb 11 17:10:56 2018 +0000
+++ b/LuaAPI.wiki Sun Feb 11 19:11:06 2018 +0000
@@ -521,7 +521,9 @@
Returns the ammo count of the specified ammo type for the specified hedgehog gear.
=== !IsHogLocal(gearUid) (0.9.23) ===
-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.
+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.
+
+This is perfect to hide certain captions like weapon messages from enemy eyes.
=== !GetGearTarget(gearUid, x, y) (0.9.16) ===
Returns the x and y coordinate of target-based weapons/utilities.