LuaLibraries.wiki
changeset 103 023ff3c709ac
parent 86 98504fb076c3
child 246 7b1a6c46c3b5
equal deleted inserted replaced
102:86cf695636c6 103:023ff3c709ac
    54     end
    54     end
    55 end
    55 end
    56 </code>
    56 </code>
    57 This will kill all hogs if a target is destroyed.
    57 This will kill all hogs if a target is destroyed.
    58 
    58 
       
    59 To see a commented example of the tracker in use by a script you can look at
       
    60 [http://code.google.com/p/hedgewars/source/browse/share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua Random Weapons]
       
    61 
    59 == Tracking functions ==
    62 == Tracking functions ==
    60 
    63 
    61 === trackGear(gear) ===
    64 === trackGear(gear) ===
    62 <blockquote>
    65 <blockquote>
    63 Will keep track of the gear.
    66 Will keep track of the gear.