Nerevr back
Member
- Joined
- Nov 7, 2014
- Messages
- 269
- Reaction score
- 7
hello i need function doSendDistanceShoot but DistanceShoot start from player not come to player
im use 0.4
im use 0.4
don't understandSwap the positions you are passing as parameters, the effect starts at the first positions and goes to the second one.
local position = getCreaturePosition(cid)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
for i = 1, 30 do
doSendDistanceShoot({x = position.x + math.random(-20, 20), y = position.y + math.random(-20, 20), z = position.z}, position, 28)
end
local position = getCreaturePosition(cid)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
for i = 1, 30 do
doSendDistanceShoot(position, {x = position.x + math.random(-20, 20), y = position.y + math.random(-20, 20), z = position.z}, 28)
end
work thx repCode:local position = getCreaturePosition(cid) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) for i = 1, 30 do doSendDistanceShoot(position, {x = position.x + math.random(-20, 20), y = position.y + math.random(-20, 20), z = position.z}, 28) end
Swap the positions you are passing as parameters, the effect starts at the first positions and goes to the second one.
lmaoCode:local position = getCreaturePosition(cid) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) for i = 1, 30 do doSendDistanceShoot(position, {x = position.x + math.random(-20, 20), y = position.y + math.random(-20, 20), z = position.z}, 28) end