|
Post by mavszorg on Feb 4, 2017 7:27:55 GMT
can someone set an example of waitvanish() ?
|
|
|
Post by vampiredbr9 on Feb 4, 2017 16:40:27 GMT
can someone set an example of waitvanish() ? I'm not so sure about waitvanish, but you can accomplish the same results by: While (exists("name.png")) then wait(1) End Hope this helps
|
|
|
Post by Mercobots on Feb 4, 2017 19:09:09 GMT
hello! this is a simple example
local img = "img.png" -- STRING OR PATTERN
local waitTime = 10 -- SECONDS
local t = Timer() -- time elapsed
if(waitVanish(img,waitTime)) then
print("image Vanish - time elapsed " .. t:check())
-- return TRUE
else
print("image still visible")
-- return FALSE
end
|
|