Ectomia
(Simon)
1
Hi all, I have a blueprint set up to cause fire to attach to the character I have, that causes them to die with a delay of 5 seconds.
What I am looking to do is have another blue print (like a medical box) put out the fire and stop the delay event and restore the character to normal
How can I go about getting the first event to stop if its been triggered? I have tried a condition with (is not dying to be set) but that did not work
Cannot find anything on the forums
Really would appreciate some help thanks
Everynone
(Everynone)
2
Yeah, one cannot, not explicitly. Delay is inevitable unless the actor dies You do have options, though:
- a
Branch
that uses a boolean variable to control what goes through:
- a
Gate
that is open by default:
- a
Timer
(we’re not using Delay at all):
Any other BP (the medkit) can use the handle to clear the timer.
I have a blueprint set up to cause fire to attach to the character I have
Depending on the complexity of what you’re building, consider looking into Actor Components. For example:
- a fire component can contain the entire logic describing what it means to be on fire and all the behaviour that goes with it
- a component like that can be dynamically spawned on any actor and will affect it
- using a medkit would mean destroying that component
Think of it as of modules of functionality that you can add and remove from actors.