I recently learned how to do this (thanks to the help of others such as @Bardy_2913) and thought I would share. You may be wondering: why can’t they just drop a medkit? While that does work, if you want other things to happen while healing, it won’t work.
What you'll need
Game Overlay x1
Trigger x3
Team Switcher x1
Health Granter x1
Tag Zone x1
Spawn Pad x1 (optional)
Setting up the basics
First, you’ll need a way for the player to become a medic. It shouldn’t matter what you choose, (I use buttons as a character select type thing) though I haven’t tested that much.
Now, connect the selection thing to a game overlay with the settings:
Overlay Type: Button
Visible on Game Start: No
Content Scope: Player
Visibility Scope: Player
Name it something like “Heal”. Next, You’ll want to place a team switcher that switches the player to a specific team when the medic is selected (I recommend team 60). You might want to use a respawn pad here.
The tag zone
Place a tag zone, and make only the team the medic is on able to tag, along with setting players to not respawn when tagged. I recommend setting the distance to the max. Next, place 2 triggers. One of them should have a delay of however long you want the cooldown to be. Connect the triggers, tag zone, and game overlay so that when a player is tagged, the no delay trigger hides the overlay, and the delay trigger shows it. Finally, make the overlay activate the tag zone, and make the third trigger deactivate it with a short delay.
Healing
Place a health granter that heals however much you want, and connect it to the tag zone, so that whenever someone is tagged, they are healed.
How this works
When the player presses the overlay, it causes a tag zone to quickly activate, essentially checking for any players nearby. When it finds someone, it heals them, then makes the triggers hide (and eventually show) the overlay.
Finished Product
Difficulty
- 1/10
- 2/10
- 3/10
- 4/10
- 5/10
- 6/10
- 7/10
- 8/10
- 9/10
- 10/10