• 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+ [TFS 1.3] Which Condition to Use for Creature has Speed 0? Paralyze or Haste?

Yan18

Member
Joined
Jun 14, 2014
Messages
104
Solutions
3
Reaction score
17
Hi guys

I wanna do a creature has 0 speed for a specific time by condition, but I tried to use CONDITION_HASTE and CONDITION_PARALYZE, but it didn't work.

Lua:
local speed = creature:getSpeed()

local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
condition:setFormula(0, -speed, 0, -speed)

creature:addCondition(condition)

What is wrong in the code?
 
Back
Top