SolvedAccess icons from different functions

Posts 1–2 of 2 · Page 1 of 1
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!
self.killstreakicon
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us