Posted: Wed May 18, 2016 12:35 pm Post subject: Delay how to do?
Ok so in a game I am playing there is a weapon list and weapons appear at certain levels and what I found was 1 injection point where it shows most of the weapons and lets you buy them and a second injection point where it shows all the weapons but doesn't let you buy them. But I found out that if I do the first injection and then the second it shows all the weapon and I can buy them.
Now what I did was put both of the injections into 1 script thinking it would work but no, all it did was show all of them and not allow me to buy them. I then wondered if there is a way to delay a code injection so for example first injection is complete then it waits 2 seconds and then the second one is complete. is there a way to do a delay between injections?
You can set a timer, but I think it's better to figure out what flag is being set (or not being set) that is making the difference. For example, it could be that the second script is only executing when you bring up the menu or something.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum