SnoopCat Posted November 14, 2011 Share Posted November 14, 2011 it is possible to make a script that refresh the resource status every 30 mins??? can someone help me whit this plz what functions i have to use? Link to comment
Castillo Posted November 14, 2011 Share Posted November 14, 2011 I don't know what do you mean by refresh their status, are you talking about of some kind of panel that lists the resources & their state? Link to comment
Jaysds1 Posted November 15, 2011 Share Posted November 15, 2011 try this: addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() tble1 = getResources() setTimer(getResourceState,30000,1,tbl1) if (getResourceState(tbl1) == "failed to load") then outputDebugScript("A resource failed to load") end end) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now