so first start off with your basic channel trigger loop that’s started by a lifecycle on game start
make sure one or both have a delay of 0.001 and slap down two player scoped number props one named “pseudo health” one named “intercept stacks” and also a game overlay also make sure the triggers cannot be stepped on to trigger it
then make pseudo health prop transmit on “check gain/loss” when it gets updated
and slap this block code in the game overlay
then go back to one of the triggers in the channel trigger loop and slap this block code in
now place a trigger that triggers on “check gain/loss”"
and put this block code in
and now for the pve obstacle which for demonstration we will use a 0 damage laser that transmits on a channel that will trigger a trigger that will subtract whatever amount of health you want from the pseudo health prop
so what intercept does is it basically grants a certain amount of pseudo health(depending on the amount of intercept stacks) when the player is hit it takes away one stack and heals them once they are out they are no longer healed when they are hit so in a nutshell its like regeneration but limited to a number of times it can heal the user