krafttomten
Well-Known Member
Hello otland! I'm pretty sure that position.y should NOT be the same as fromPosition.y in onStepOut movement scripts... right? fromPosition should be the tile I leave and position.y should be the tile I (creature) move onto... right?? Or am I missing something?
In my case, [*edit* even when I move on the y-axis], this code outputs
But this is completely useless! Does anyone know how I can fix it?
*edit Obviously I move the character on the y-axis when testing this....
*edit2 If it matters, here is the movements.xml code
Lua:
function onStepOut(creature, item, position, fromPosition)
print(position.y)
print(fromPosition.y)
end
In my case, [*edit* even when I move on the y-axis], this code outputs
Code:
1486
1486
But this is completely useless! Does anyone know how I can fix it?
*edit Obviously I move the character on the y-axis when testing this....
*edit2 If it matters, here is the movements.xml code
XML:
<movevent event="StepOut" uniqueid="21009" script="emeraldcaves/deob.lua" />
Last edited: