AlliedModders

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

KCE 04-21-2005 20:17

set_task question
 
Code:

set_task ( Float:time,const function[],id = 0,parameter[]="",len = 0,flags[]="", repeat = 0 )
If flag is "a", then repeat means how many times to repeat it?

stigma 04-21-2005 20:19

unlimited ;)

Ced 04-21-2005 20:25

no, "b" is an infinite loop while "a" is repeating how many times u specify by adding another argument after the flags.

KCE 04-21-2005 21:11

Let's say I do:

Code:
set_task(0.5, "MyTask", 1563, _,_, "a",10)

Does this mean it'll do MyTask every 0.5 seconds, 10 times?
Will it start after 0.5 sec and then do the above or will it start right away and do the above?

:?:

xeroblood 04-22-2005 11:07

Yes, it will wait the 0.5 seconds before getting executed the first time..


All times are GMT -4. The time now is 10:02.

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