This a guide on how to make a regen system like Brawl stars, when a player fires a gadget you stop regening health.
WARNING INCLUDES REPEATERS
ONLY TAKES UP 1% MEMORY TOO!
Items needed
x2 life cycle
x2 repeater (Yes I know most of y’all don’t like repeaters)
x1 counter
x1 relay
x1 health granter
Step 1 making the regen system.
Place your life cycle and repeater and wire them like this.
The repeater settings need to be set like this.
Task interval = 1.0
Stop strategy = after receiving on a channel.
Thats all you need to change
Get your relay and wire it to the repeater like this.
Don’t change the settings of the relay
Now for the health granter you can personalize the settings, for this guide the settings are,
Amount = 5
Grant type = Health, than shield.
Wire it like this, from the relay to the health granter.
Your done with the health regeneration system!
Step 2
Get your second life cycle and set the settings to…
Event = Player fires gadget.
Thats it for the life cycle
Grab your second repeater and set it to the following…
Task interval = 1
Stop strategy = after receiving on a channel.
Thats it!
Wire the 1st life cycle (The one set on game start) to the 2nd repeater like this.
Get your counter and set it to the following settings…
Target value = 5
Scope = player
Visible in game = no
Thats it for the counter!
Wire the 2nd repeater to the counter like this…
Next wire the counter to the 1st repeater like this.
Now, wire the 2nd life cycle (The one set to player fires gadget) to the 1st repeater like this.
Last thing!
Wire the 2nd lifecycle (The one set to player fires gadget) to the counter like this.
Your done!
If you have any questions ask me!
Reason behind this guide
Sometimes players heal more than the damage they take, this makes them harder to knock them out, this regeneration system does not allow players to heal while their attacking.