Ziuber Posted April 17, 2018 Share Posted April 17, 2018 Hi, Is there a way to add a counter for snowballs that spawn from ice flingomatic to destroy after X seconds? I need this as a fail-safe solution to the situation, when snowballs don't get destroyed when reaching their targets; they just go in the straight line forever. Link to comment https://forums.kleientertainment.com/forums/topic/89900-snowballs-for-ice-flingomatic/ Share on other sites More sharing options...
kertinker Posted April 19, 2018 Share Posted April 19, 2018 There's "DoTaskInTime" for a bunch of stuff. Any instance can have "inst:DoTaskInTime" called, as well as TheWorld:DoTaskInTime, and TheFrontEnd.screenroot.inst:DoTaskInTime. Each of those takes a time, and a function, as arguments. Link to comment https://forums.kleientertainment.com/forums/topic/89900-snowballs-for-ice-flingomatic/#findComment-1027423 Share on other sites More sharing options...
Ziuber Posted April 29, 2018 Author Share Posted April 29, 2018 Ok. So I tried adding this: projectile:DoTaskInTime(5,projectile:Remove()) to the firesuppressor.lua as a last line of the LaunchProjectile function. Now, when I turn on Ice Flingomatic it tries to shoot snowballs but ultimately it does't (like it's shooting invisible snowballs). I guess they get destroyed. I also tried with value 50 as delay but no luck. Anybody knows what might be the problem? Link to comment https://forums.kleientertainment.com/forums/topic/89900-snowballs-for-ice-flingomatic/#findComment-1031166 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now