Access icons from different functions
Hey,
i created a function, which creates me an icon.
custom_ks()
{
KillstreakIcon = self createIcon("cardicon_shuriken", 32, 32);
KillstreakIcon setPoint("Center", "Center", 0, -165);
KillstreakIcon.foreground = false;
}
If i try to access this icon from another thread, it won't work. I want to destroy this element like "KillstreakIcon destroyElem();" from a different thread. Is there a way to search for all elements on the screen by name and if it founds it, it will destroy it?
greets!