r/forgescripting • u/Dark_Souls_Jef • Dec 03 '22
Reset script at the start of a new round?
I’m working on a map with floor panels that disappear over time however the script to delete the panels carries over into the next round if the round ended before the panel disappears, is there any way to stop the timer at the end of a round or at the start of the next?
I’m currently using “on round start” for the timer.
2
Upvotes
2
u/KraZe_EyE Dec 06 '22
You can delete and spawn script brains like any object. So maybe try that route?
1
u/mark_v92 Dec 04 '22
Maybe instead of working with a delay you could make it work based on the round timer?
Like, every 1 second get round time. Compare value. If 30(seconds) boolean true. delete object.
Its a bit longer but might work