• 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!

Solved [0.4] getThingPos with direction

Wix

Banned User
Joined
Jan 3, 2021
Messages
29
Solutions
1
Reaction score
14
Location
Krypton
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 screenshot.png
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
Thanks in advance
using tfs 0.4 :)
 
Top