ScriptedStructures.wiki
changeset 171 ede3b4409e12
parent 170 2c466afb3f4a
equal deleted inserted replaced
170:2c466afb3f4a 171:ede3b4409e12
    19 === Power Generators ===
    19 === Power Generators ===
    20 
    20 
    21 Put simply, this structure powers other structures. It could be implemented by having an invisible gtTarget linked to a lua-based structure object. The animation of the power generator could be handled using the vgtStraightShot visual gear which allows the drawing of any sprite in Hedgewars.
    21 Put simply, this structure powers other structures. It could be implemented by having an invisible gtTarget linked to a lua-based structure object. The animation of the power generator could be handled using the vgtStraightShot visual gear which allows the drawing of any sprite in Hedgewars.
    22 
    22 
    23 Once a power generator is destroyed, whatever structures it is linked to turn off. So, for example, if a power generator is linked to a Material Emancipation Grill, the player could shoot the Power Generator in order to disable/destroy the Grill structure.
    23 Once a power generator is destroyed, whatever structures it is linked to turn off. So, for example, if a power generator is linked to a Material Emancipation Grill, the player could shoot the Power Generator in order to disable/destroy the Grill structure.
       
    24 
       
    25 === Switch ===
       
    26 
       
    27 In lieu of a Power Generator, a "switch" visual gear could be drawn on a point of the map. When the hog moves to within close range of a switch structure and interacts with it in someway (e.g. shift + left/right), whatever structure the switch is linked to is toggled on/off.
    24 
    28 
    25 === Health Recharger ===
    29 === Health Recharger ===
    26 
    30 
    27 When "on" this structure would slowly restore the life of any hedgehogs nearby it.
    31 When "on" this structure would slowly restore the life of any hedgehogs nearby it.
    28 
    32