function collision (projectile)
local time = projectile.counter / 10
local velocity = projectile.velocity
velocity = velocity * time
--
local position = projectile.position + velocity
local sight, x, y, z = processLineOfSight(
projectile.position,
position,
true,
true,
true,
true,
true,
true,
true,
false,
nil,
true
)
position = (sight and Vector3(x, y, z)) or position
--
Marker(
position,
'corona',
3
)
end
addEventHandler(
'onClientProjectileCreation',
root,
function()
collision(source)
end
)