• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Dis effect

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
 
Swap the positions you are passing as parameters, the effect starts at the first positions and goes to the second one.
 
Swap the positions you are passing as parameters, the effect starts at the first positions and goes to the second one.
don't understand
i have this but this come from whatever to player
Code:
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

but i want DistanceShoot start from player to what ever

im so sorry about my english :S
 
Code:
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
 
Code:
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 rep
 
Swap the positions you are passing as parameters, the effect starts at the first positions and goes to the second one.
Code:
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
lmao
 
Back
Top