Making custom buildings heal units

U

Unregistered

Guest
how do I make it so that when a unit walks near a building it will heal him? or when he walks near a doodad (besides the fountain of health)?
 

Scam_ent

New Member
Reaction score
1
make a region around the Building

use the Event- Unit Enters Region

and run a new trigger, which will have condition: Unit (whatever unit u need) is withing region (Not sure if you can actually do this, I don't have the program with me at school).

Event: every 2 seconds of game time,
Action: add 50 or so hit points to unit.

then another trigger for when unit leaves region, to turn off the add hit points trigger.

I explained this badly, and there's probably an easier way, but i'm at schol so I can't concentrate.




Cam
 

Scam_ent

New Member
Reaction score
1
Hey, easier idea: Build a custom building, and give it the ability: Health Regeneration Aura.

Easier, hey?




Cam
 
S

stielydan

Guest
ya scam u can do it either way.

if u want to make it by a certain doodad though you have to use the region idea.
you can make it heal a percentage too instead of an actual number of HP.
On my map i had a special fountain that has a region that if you enter it immediately fills health and mana.
so one of these options should help you.
 
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