How to make game rez near tree of lie

i want the characters lifeweaver to be able to be able to resurrect their other teammate lifeweavers by placing his tree of life within five meters of where that lifeweaver died. it has to be on their own team though. i want the tree to resurrect anyone within the 5 meters it doesnt just have to be 1 person. how do i go about doing this?

So there are three things here that you need to do;

The Rez Mechanic - Basically you need to check for any dead players on the players team that are dead within 5 meters of the tree position (explained later) and rez them.

Tree Position - This will be hard to track as you cannot get the tree position natively, basically you want a raycast for 30 meters away (max range of Tree placement);

Trigger - you want to trigger the rule when the lifeweaver presses Ult and then right click for confirmation

I would work on the rez and trigger first as this is easier to do; and then work on the tree position as that will be complicated to do accurately