Skip to main content

Fireball

This is a spell generated through the Beam effect, allowing a fireball to be launched and hit opponents within a given range from the point of impact.

Click on the image to watch the video

Watch the video

How to use

Take the test.lua file as a reference, you can test using command /fireb and you will trigger this function

function TestFireb()
local coordsEscena = PZFX.Effects.Utils.GetCoordsBall()
if coordsEscena ~= vector3(0, 0, 0) and coordsEscena ~= nil then
local done = false
local doing = true
while doing do
Wait(0)
if not done then
done = true
SetTimeout(200, function()
PZFX.DONE = false
PZFX.Effects.Beam2(nil, coordsEscena, fx.fireball)
while not PZFX.DONE do Wait(1) end
end)
doing = false
end
end
end
end