Yep. For an aura, create a Behavior of type Buff, then under Effect -> Effect - Periodic, you add a Search Area effect that applies a Modify Unit Effect.
Search - Search Flags: Exted By Unit Radius (this is very important!)
Target - Impact Location +: Caster Unit
Target - Launch Location +: Caster Unit
Behavior 2 - The behavior you add to your unit (building)
Type: Buff
Effect - Effect - Periodic: Effect 2 (the link to your "Search Area" effect)
Stats - Flags: Hidden
Stats - Period: 1.0
Stats - Time Scale Source +: Caster
So all in all the order is: Behavior 2 (on your unit) -> Effect 2 (locates nearby units) -> Effect 1 (applies behavior) -> Behavior 1 (executes behavior data)
It can seem quite complicated, but it's really not once you get the hang of it. Enjoy :)
Hey guys,
Is there any way to have a building restore and regenerate the energy of those stood nearby it?
Yep. For an aura, create a Behavior of type Buff, then under Effect -> Effect - Periodic, you add a Search Area effect that applies a Modify Unit Effect.
@Nashadun: Go
Thanks a load :)
@Nashadun: Go
Sorry, just got home and tried this... and failed miserably!
How would I go about implementing it?
Which part of the process is it you don't understand?
@Nashadun: Go
I'm not sure how to create the "search area" effect
@Mesothere: Go
You need two behaviors and two effects.
Behavior 1 - The mana regeneration buff
Type: Buff
Effect 1 - The effect that applies Behavior 1
Type: Apply Behavior
Effect 2 - The search area locating nearby units
Type: Search Area
Behavior 2 - The behavior you add to your unit (building)
Type: Buff
So all in all the order is: Behavior 2 (on your unit) -> Effect 2 (locates nearby units) -> Effect 1 (applies behavior) -> Behavior 1 (executes behavior data)
It can seem quite complicated, but it's really not once you get the hang of it. Enjoy :)
Biffu has a great video tutorial on how to do this:
@Kafoso: Go
Thanks a lot :) Works a treat