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=207774)

daniel46 02-06-2013 16:08

set task question
 
why when i do like this

set_task(1.5, "task", TASK + client , _ , _, "b")

its do it much faster then 1.5????

n0br41ner 02-06-2013 17:05

Re: set task question
 
No it is executed after 1.5 seconds.
I really don't get what you mean. Are you asking if the task is executed in a time < 1.5 ?

Doc-Holiday 02-06-2013 17:20

Re: set task question
 
Quote:

Originally Posted by n0br41ner (Post 1888684)
No it is executed after 1.5 seconds.
I really don't get what you mean. Are you asking if the task is executed in a time < 1.5 ?

how the hell are you gaging 1.5 seconds?

It uses gametime im pretty sure so if you start it at 123.43 it will fire again at 124.93..... so maybe your just seeing the types wrong but it does wait the time given in the first argument...

n0br41ner 02-06-2013 17:43

Re: set task question
 
Quote:

Originally Posted by Doc-Holiday (Post 1888695)
how the hell are you gaging 1.5 seconds?

It uses gametime im pretty sure so if you start it at 123.43 it will fire again at 124.93..... so maybe your just seeing the types wrong but it does wait the time given in the first argument...

I didn't understand what you meant :shock:

Doc-Holiday 02-06-2013 17:48

Re: set task question
 
Quote:

Originally Posted by n0br41ner (Post 1888709)
I didn't understand what you meant :shock:

If you set a task for 1.5 seconds

and the time is

14:47: 30 hours

you will see the time after it runs as

14:48:80 hours

but it only looks like a second went by

So im asking you how are you determining that that is calling the function less then every 1.5 seconds

Bos93 02-06-2013 17:51

Re: set task question
 
English is difficult :D

n0br41ner 02-06-2013 19:44

Re: set task question
 
Quote:

Originally Posted by Doc-Holiday (Post 1888712)
If you set a task for 1.5 seconds

and the time is

14:47: 30 hours

you will see the time after it runs as

14:48:80 hours

but it only looks like a second went by

So im asking you how are you determining that that is calling the function less then every 1.5 seconds

Oh now i see :cry:
not a good idea staying awake at 3:00 am :nono:

fysiks 02-06-2013 21:56

Re: set task question
 
Quote:

Originally Posted by Doc-Holiday (Post 1888695)
how the hell are you gaging 1.5 seconds?

It uses gametime im pretty sure so if you start it at 123.43 it will fire again at 124.93..... so maybe your just seeing the types wrong but it does wait the time given in the first argument...

Why did you quote n0br41ner? He is not the OP and nothing he said is incorrect.

Doc-Holiday 02-06-2013 23:48

Re: set task question
 
Quote:

Originally Posted by fysiks (Post 1888848)
Why did you quote n0br41ner? He is not the OP and nothing he said is incorrect.

shows what i get for typing from my phone...

i meant to quote the OP i didnt even see nob post when i read it on tapatalk

but my message was to the OP... not nob my bad.

hypheni 02-07-2013 01:20

Re: set task question
 
One more question regarding this post.

using _ or 0 as set_task argument means the same ?. ie: passing the argument as NULL


All times are GMT -4. The time now is 20:35.

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