playerpos = getPlayerPosition(pid)
doSendMagicEffect({x=playerpos.x, y=playerpos.y-1, z=playerpos.z}, CONST_ME_FIREAREA)
pos= getPlayerPosition(pid)
pos.y = pos.y-1
doSendMagicEffect(pos, CONST_ME_FIREAREA)
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
local players = getPlayersOnline()
for _, pid in ipairs(getPlayersOnline()) do
if(getPlayerVocation(pid) == 0) then
playerpos = getPlayerPosition(pid)
doSendMagicEffect(playerpos, CONST_ME_FIREAREA)
Ok but i try all "in my opinion" and no resultsOkay, what you really mean is you want it to appear to be "above", but positioning wise, it's actually -1 along the Y axis. That is doable, but in order to do that, you will need to edit the Y value of the player position before passing it to your doSendMagicEffect call.
I'm not quite sure if the playerpos variable is in this format, but I'm guessing you can do a playerpos.y -= 1 operation before sending the effect.
playerpos(y-1) = getPlayerPosition(pid)
doSendMagicEffect(playerpos, CONST_ME_FIREAREA)
playerpos = player:getPosition()
effectpos = Position(playerpos.x, playerpos.y -1, playerpos.z)
effectpos:sendMagicEffect(CONST_ME_FIREAREA)
ErrorsIts as easy as this. Stop using 0.X functions.
LUA:playerpos = player:getPosition() effectpos = Position(playerpos.x, playerpos.y -1, playerpos.z) effectpos:sendMagicEffect(CONST_ME_FIREAREA)
playerpos = getPlayerPosition(pid)
doSendMagicEffect({x=playerpos.x, y=playerpos.y-1, z=playerpos.z}, CONST_ME_FIREAREA)
pos= getPlayerPosition(pid)
pos.y = pos.y-1
doSendMagicEffect(pos, CONST_ME_FIREAREA)
Oh its working hah thanksor in pre 1.0
LUA:playerpos = getPlayerPosition(pid) doSendMagicEffect({x=playerpos.x, y=playerpos.y-1, z=playerpos.z}, CONST_ME_FIREAREA)