#Oxygen bar
7 messages · Page 1 of 1 (latest)
you will need to make a trigger volume where when you enter, it turns on a delay loop thats sends a signal every (amount of time before each interval oxygen depletion), then wire that signal to a integer variable (which you would constantly make the hud element value) which is wired to an add that has its b value = 1 > after that, wire when player exits to cancel on the delay loop
I would suggest making the delay loop like 0.1 seconds so you dont have to use bool variables to make the oxygen depletion happen instantly
also, make sure you have an if chip wired to the second delay in the delay loop, wire the bool of the if chip to an equal chip that checks the value of the integer variable to see if its 0, if true, check if the local player is local, and wire is local to a respawn chip
that respawns the player
i saw that reaction btw😡
Would not use an int variable for this