AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_task() (https://forums.alliedmods.net/showthread.php?t=11310)

Newbster 03-15-2005 11:56

set_task()
 
Code:

temp = float(get_cvar_num("mp_combattime")-5)
set_task(temp,"vote",9678,"",0,"b")

will this code set the function "vote" to execute 5 minutes before game end?

KaOs 03-15-2005 12:22

Code:
set_task(float(get_cvar_num("mp_combattime")-5), "vote")

That should work 8)

Twilight Suzuka 03-15-2005 12:26

Thats seconds. He needs minutes. It would be -300

Newbster 03-15-2005 13:05

Well, i want it to repeat every time the game time is reset so i need the loop thing. So wait, does the set_task timer time in seconds or minutes?

XxAvalanchexX 03-15-2005 15:43

set_task is in seconds.

Newbster 03-15-2005 15:43

Thank you, i think i got it.


All times are GMT -4. The time now is 14:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.