Delete Object By Event
-
Hello every one
I Have question
I have created so many object in on Init and on Tick event
How to I only delete object on the on Tick event not on Init?at the end of the day i delete everything but it also will delete object from on Init too, and i don't want it
-
event happens - delete
-
@jstap
could you be more specific? -
I'll help, what condition happens to say delete everything on tick? On init only happens at bot start
-
@jstap
I'll draw some objective on Init Event and i want them to stay
but every day i want to delete everything on Tick event -
once a day? if so once per day block - delete
-
@jstap
i have used once per day in on Tick but it will delete everything from on Tick and on Init
i only want on Tick to be deleted not on Init. -
on init is just when it's drawn, to delete what you want delete the specific object.
-
@jstap

i have these objects in on Init event and so many more in on Tick as you can see
if i want to delete them by name or by type it would take so long.
the easy way is to just delete once per day in on Tick but it also will delete objects from on Init as well.
so i want to know that is there a way to just delete every object in on Tick only and not in the on Init.
i already that that i can name them all and delete by name or type but because it to many it would take a lot of time.thanks.
-
Make this simple for yourself, test with a few objects, draw anywhere and delete what you want when you want on tick, you know the old saying KISS? Adding lots often just makes getting to the result you want more difficult, delete as many as you want at any time you want on tick takes a tick, so doesn't take ages
-
@jstap
ok
thanks
I'll do it your way