[Solved] Adding an energy cost to Aura tower + Cannons

ryanradnell

New Member
Reaction score
0
Hey there,

I'm looking for help regarding adding an energy cost every time the cannons fire, and every time the aura tower ticks.

for example,
Cannon requiring at least 1 energy to shoot
and tower aura losing 1 energy/s whenever it's applying the buff

Any help would be appreciated, Thanks!
 

X-maul

AKA: Demtrod
Reaction score
201
For the weapon, just add an energy cost to the weapon - simply go to the weapon tab and find your weapon, and go to Stats - Cost and set the energy cost to 1.

For the aura tower, maybe take a look at how the Cloak ability works :)
- It's basically a periodic behavior, which removes 1 energy per sec, and has a validator that checks if the energy of the unit is higher than 0.
 

ryanradnell

New Member
Reaction score
0
For the weapon, just add an energy cost to the weapon - simply go to the weapon tab and find your weapon, and go to Stats - Cost and set the energy cost to 1.

For the aura tower, maybe take a look at how the Cloak ability works :)
- It's basically a periodic behavior, which removes 1 energy per sec, and has a validator that checks if the energy of the unit is higher than 0.


Thanks i got it working after a few minutes, much appreciated
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top