Raised This Month: $ Target: $400
 0% 

set_task with cvars?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 01-31-2007 , 03:03   Re: set_task with cvars?
Reply With Quote #3

task time must be float, so at first, must be:
Code:
get_cvar_float("something")
And others:
Code:
Syntax
set_task ( Float:time,const function[],id = 0,parameter[]="",len = 0,flags[]="", repeat = 0 ) 
Type
Native 
Notes
Flags: 
"a" - repeat. 
"b" - loop task. 
"c" - do task on time after a map timeleft. 
"d" - do task on time before a map timelimit. 

Example of executing a task once. 

set_task(15.0,"MyFunction") 


Remember that functions executed by set_task needs be public
Ryu2877 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:43.


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