# HG changeset patch
# User Wuzzy
# Date 1478702015 0
# Node ID 33b5b51f54d64600de49df5108381757e5ae2d0f
# Parent ea13b02292c5e3626fdeb51262718461bd3efe66
LuaAPI: Add IsHogLocal
diff -r ea13b02292c5 -r 33b5b51f54d6 LuaAPI.wiki
--- a/LuaAPI.wiki Wed Nov 09 14:16:43 2016 +0000
+++ b/LuaAPI.wiki Wed Nov 09 14:33:35 2016 +0000
@@ -491,9 +491,12 @@
=== !GetHogVoicepack(gearUid) (0.9.22) ===
Returns the name of the voicepack of the team of the specified hedgehog gear.
-=== !GetAmmoCount(gearUid, ammoType) (0.9.16) ===
+=== !GetAmmoCount(gearUid, ammoType) (0.9.16) ===
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.
+
=== !GetGearTarget(gearUid, x, y) (0.9.16) ===
Returns the x and y coordinate of target-based weapons/utilities.
Note:: This can’t be used in `onGearAdd()` but must be called after gear creation.