![]() |
|
Help Resetting a "wait"? - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help Resetting a "wait"? (/Thread-Help-Resetting-a-wait.html) |
Resetting a "wait"? - DidUknowiPwn - 08-15-2013 Alright so I'm 99% done with recreating the Cranked gamemode that was previewed & demoed in CoD: Ghosts. The only issue left is resetting the wait time that I put in. This is how I currently handle the timer: Code: Cranked_Timer()
{
self endon("death");
self.CrankedTime SetTimer( getDvarInt("scr_cranked_time") );
wait getDvarInt("scr_cranked_time");
self thread Cranked_Fail();
}RE: Resetting a "wait"? - DidUknowiPwn - 08-15-2013 Can any mod close this, it was fixed by a friend. (2 lines really? lololol.) RE: Resetting a "wait"? - master131 - 08-17-2013 At least post the solution for others. I'm going to guess it was: Code: time = getDvarInt("scr_cranked_time");
wait time;RE: Resetting a "wait"? - DidUknowiPwn - 08-17-2013 Nope. Right after the end on death we put 'self notify ("iscranked"); self endon ("iscranked") ; |