#remove event not working
21 messages · Page 1 of 1 (latest)
It's not hte gate
Can you please share this sharecode with me. It seems to be fine for me when I try and recreate it
Ah nevermind, I can reproduce it
The issue is the delayed spawning of the jet
So because it's delay spawned, I kill the spawner not the jet itself
So this is by design. As you need to be able to kill the spawner and the jet separeately when it's delayed
so yeah, as @molten aspen said the solution is to kill the F-16 manually
Please change the last line to:
So you manually have to kill the jet if it's delay spawned
I made another mission editor without gate and it works fine with wait time 5 seconds. I don’t understand why it shouldn’t execute remove event even with gate. I’m not hating on coding it’s just confusing on why it didn’t work. It looked simple to execute the remove event
Ok thanks for the help
Ah ok, yes so technically it's the gate that is causing the issue
But not the gate itself
it's because you are delay spawning the jet
when you delay spawn, I don't delete the spawned jets, just the spanwer itself. The reason I do this is you may be delay spawning say 1 jet per 10 seconds. You shouldn't destroy all jets when you destroy the spawner
Now that you can sethealth it's better to do that directly. You use destroy on the spanwer to make sure it doesn't spawn agian
I know this is a bit confusing, sorry
ok I've added a new remove event that lets you remove without exploding an object