SAGEPAPI Posted August 22, 2020 Share Posted August 22, 2020 I want to know if there is a way to freeze a value for a certain amount of time in a script. Link to comment Share on other sites More sharing options...
sodaface Posted August 23, 2020 Share Posted August 23, 2020 Oh d***. That's a great idea. Link to comment Share on other sites More sharing options...
SAGEPAPI Posted August 24, 2020 Author Share Posted August 24, 2020 Ik how to do it: if gg.getResultCount() == 2 then for i,v in pairs(t) do t[i].address = t[1].address - 0x4 t[i].flags = gg.TYPE_DOUBLE t[i].value = 1 t[i].freeze = true gg.setValues(t) gg.addListItems(t) gg.clearResults () end gg.sleep(5000) local p = gg.getListItems() gg.loadResults(p) for i,v in ipairs(p) do p[i].freeze = false gg.setValues(p) gg.addListItems(p) end end You need to sleep gg for the time u want (time is in millisec) Link to comment Share on other sites More sharing options...
Question
SAGEPAPI
I want to know if there is a way to freeze a value for a certain amount of time in a script.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.