Hi!
I wanted to create enemies that regenerate after a certain amount of time and can be killed by using certain items for a small demo project for my portfolio. I needed two things - a timer that when the count is equal to zero regenerates an enemy and a small interface to use an item to kill it permanently.
Thanks to a thread that Shaz replied to I got the timer to work correctly so my enemies correctly regenerate in a loop, but it all goes to hell when I try to create the interface to interact with a corpse.
As soon as I activate the interface page (4th one) and it is possible to interact with a corpse, the If timer < 0 statement on page 3 suddenly stops working, despite the fact that nothing switches off the B self-switch (even if I don't interact with a corpse).
Picking option No or when the player does not have the required item works correctly, after picking any of those options the enemy correctly self-resurrects after a certain amount of time.
I've tried to fix it for 2 days but I've only started to code recently and I honestly don't know what I'm doing wrong. Thx in advance for help.
For reference, page 5 of the behavior works correctly.
I wanted to create enemies that regenerate after a certain amount of time and can be killed by using certain items for a small demo project for my portfolio. I needed two things - a timer that when the count is equal to zero regenerates an enemy and a small interface to use an item to kill it permanently.
Thanks to a thread that Shaz replied to I got the timer to work correctly so my enemies correctly regenerate in a loop, but it all goes to hell when I try to create the interface to interact with a corpse.
As soon as I activate the interface page (4th one) and it is possible to interact with a corpse, the If timer < 0 statement on page 3 suddenly stops working, despite the fact that nothing switches off the B self-switch (even if I don't interact with a corpse).
Picking option No or when the player does not have the required item works correctly, after picking any of those options the enemy correctly self-resurrects after a certain amount of time.
I've tried to fix it for 2 days but I've only started to code recently and I honestly don't know what I'm doing wrong. Thx in advance for help.
For reference, page 5 of the behavior works correctly.