LuaAPI: Add IsHogLocal
authorWuzzy
Wed, 09 Nov 2016 14:33:35 +0000
changeset 913 33b5b51f54d6
parent 912 ea13b02292c5
child 914 2dcdf6a68bd7
LuaAPI: Add IsHogLocal
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 @@
 === <tt>!GetHogVoicepack(gearUid)</tt> (0.9.22) ===
 Returns the name of the voicepack of the team of the specified hedgehog gear.
 
-=== <tt>!GetAmmoCount(gearUid, ammoType) (0.9.16)</tt> ===
+=== <tt>!GetAmmoCount(gearUid, ammoType)</tt> (0.9.16) ===
 Returns the ammo count of the specified ammo type for the specified hedgehog gear.
 
+=== <tt>!IsHogLocal(gearUid)</tt> (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.
+
 === <tt>!GetGearTarget(gearUid, x, y)  (0.9.16)</tt> ===
 Returns the x and y coordinate of target-based weapons/utilities. 
 <b>Note:</b>: This can’t be used in `onGearAdd()` but must be called after gear creation.