I have a ghost that tracks the player. I also put a collision sphere on it and I want it to affect a progress bar in my widget. I want the health loss to be gradual
- player
Begin Overlap
āCast to
Ghost ā openGate
ā lose health ā Update UI - player
Ens Overlap
Cast to
Ghost ā closeGate
1 Like
- connect Other Actor to Object
- successful cast ā Open Gate (instead of Enter)
- connect Tick to Gate Enter
- on Gate Exit:
- call a function that reduces player health
- call a function that updates the UI using the reduced health value
You will need to create those functions first. A boolean variable does not help much here.