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

Shadows Adi 07-17-2020 17:14

set_task question
 
Hello,
I wanna know where is coded set_task function in AmxModX core, because I want to go lower than 0.1 seconds for the timer, ex 0.01 ( momentary, idk if that is posible, but... I wanna try =)) )

Code:
set_task(Float:time,const function[],id = 0,parameter[]="",len = 0,flags[]="", repeat = 0) The parameters break down as such: Float:time - Interval of timer in seconds @@(minimum 0.1 seconds)

https://wiki.alliedmods.net/Advanced...X_Mod_X)#Tasks

Edit =))) : I just found it here: https://github.com/alliedmodders/amx...modx.cpp#L2666
But it seems to be hardcoded asf

OciXCrom 07-17-2020 21:15

Re: set_task question
 
If you want to go lower, use a thinking entity. Tasks cannot go lower than 0.1.


All times are GMT -4. The time now is 13:48.

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