Hi, I'm struggling into changing the direction on this script with getThingPos(cid) value can someone help me to change the magic effect direction I want make it works only the south east direction SQM instead of this
I have reached this
Thanks in advance
using tfs 0.4
I have reached this
Lua:
function onStepIn(cid, item, fromPosition, itemEx, toPosition)
local direction = getCreatureLookDirection(cid)
local pos = getThingPos(cid)
local x = {
[0] = {x = pos.x, y = pos.y+1, z = pos.z},
[1] = {x = pos.x+1, y = pos.y, z = pos.z},
[2] = {x = pos.x, y = pos.y+1, z = pos.z},
[3] = {x = pos.x-1, y = pos.y, z = pos.z}
}
doSendDistanceShoot(pos, x[direction], 30)
end
using tfs 0.4