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.
What is wrong in the code?
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?