LuaAPI.wiki
changeset 913 33b5b51f54d6
parent 912 ea13b02292c5
child 916 a01743eb08f1
equal deleted inserted replaced
912:ea13b02292c5 913:33b5b51f54d6
   489 Returns the name of the grave of the team of the specified hedgehog gear.
   489 Returns the name of the grave of the team of the specified hedgehog gear.
   490 
   490 
   491 === <tt>!GetHogVoicepack(gearUid)</tt> (0.9.22) ===
   491 === <tt>!GetHogVoicepack(gearUid)</tt> (0.9.22) ===
   492 Returns the name of the voicepack of the team of the specified hedgehog gear.
   492 Returns the name of the voicepack of the team of the specified hedgehog gear.
   493 
   493 
   494 === <tt>!GetAmmoCount(gearUid, ammoType) (0.9.16)</tt> ===
   494 === <tt>!GetAmmoCount(gearUid, ammoType)</tt> (0.9.16) ===
   495 Returns the ammo count of the specified ammo type for the specified hedgehog gear.
   495 Returns the ammo count of the specified ammo type for the specified hedgehog gear.
       
   496 
       
   497 === <tt>!IsHogLocal(gearUid)</tt> (0.9.23) ===
       
   498 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.
   496 
   499 
   497 === <tt>!GetGearTarget(gearUid, x, y)  (0.9.16)</tt> ===
   500 === <tt>!GetGearTarget(gearUid, x, y)  (0.9.16)</tt> ===
   498 Returns the x and y coordinate of target-based weapons/utilities. 
   501 Returns the x and y coordinate of target-based weapons/utilities. 
   499 <b>Note:</b>: This can’t be used in `onGearAdd()` but must be called after gear creation. 
   502 <b>Note:</b>: This can’t be used in `onGearAdd()` but must be called after gear creation. 
   500 
   503