Is it possible to stop an Ork Event (with Re-enable) that is currently running in a scene using a C# script? Because I want to call this event later again in the same scene whenever I need it.
I tried deactivating and destroying the object containing the event but there was a gap that can't fit my need. I want to stop an Ork Event (with reenable) and keep that object still in the scene and then later start that event again whenever I want.
I think your best option is to use a variable condition in your Event Interaction to prevent the event from starting (again). Using Repeat Event will continue to check the conditions and start the event again when the condition's are valid.
Post edited by gamingislove on
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I tried variable condition in the event interaction.
If I untick the Auto Destroy then I also can't use the Repeat Check in the Variable condition too. This gives result of not restarting the event at all.
However, to use repeat check I must firstly tick the box of Auto Destroy. Then if the variable is not true, the object will be destroyed. Then when the variable set back to True, how can I restart that event? Because the object already destroyed earlier.
Disable Auto Destroy in the variable conditions, as that's not what you need.
You should enable Repeat Event in the Event Settings of the event interaction to repeat the execution - checking the variable conditions happens automatically when the repeated execution tries to start the event.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Thanks.
If I untick the Auto Destroy then I also can't use the Repeat Check in the Variable condition too.
This gives result of not restarting the event at all.
However, to use repeat check I must firstly tick the box of Auto Destroy.
Then if the variable is not true, the object will be destroyed.
Then when the variable set back to True, how can I restart that event?
Because the object already destroyed earlier.
Please kindly advise.
Thanks.
You should enable Repeat Event in the Event Settings of the event interaction to repeat the execution - checking the variable conditions happens automatically when the repeated execution tries to start the event.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I accidentally ticked the box of Check Object Variables, now just unticked it works as per your advice.
Thank you so much for your help.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!