• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Does CONDITION_PARAM_MANATICKS have a minimum value?

guiismiti

Well-Known Member
Joined
May 19, 2014
Messages
315
Solutions
3
Reaction score
68
Hello,

I'm trying create a regen condition and set a tick value that is lower than 1000 ms.
It is currently set at 10 ms, but the regen is still happening at 1000 ms:

Lua:
condition:setParameter(CONDITION_PARAM_MANATICKS, 10)

Is 1000 ms the minimum value for the parameter?

Thanks in advance.
 
Solution
it has to do with creature think interval pretty sure
the interval by default is 1000, so anything below still only executes at least every 1000ms
if you want to change it go to creature.h and edit this
C++:
static constexpr int32_t EVENT_CREATURE_THINK_INTERVAL = 1000;
although i don't really recommend lowering it much more especially not down to 10ms, the engine will become more resource intensive
it has to do with creature think interval pretty sure
the interval by default is 1000, so anything below still only executes at least every 1000ms
if you want to change it go to creature.h and edit this
C++:
static constexpr int32_t EVENT_CREATURE_THINK_INTERVAL = 1000;
although i don't really recommend lowering it much more especially not down to 10ms, the engine will become more resource intensive
 
Solution
Back
Top