Bully-Board
Bully Modding Section => Script Modding => LUA Scripting Help => Topic started by: Ming on August 04, 2021, 05:00:00 PM
-
code]DestroyCar = function()
while true do
for Ming, Car in {VehicleFindInAreaXYZ(0, 0, 0, 99999)} do
if CarGetDamageNumber(Car) > 100 and VehicleIsValid(Car) then
local X, Y, Z = VehicleGetPosXYZ(Car)
local Effect1 = EffectCreate("CarDestroyed", X, Y, Z)
local Effect2 = EffectCreate("GymFire", X, Y, Z)
VehicleDelete(Car)
EffectSlowKill(Effect1, 0.6)
EffectSlowKill(Effect2, 3)
end
end
Wait(0)
end
end
What is the mistake of the function ? :hmm:
Can someone please help :biggrin:
-
Heyo, you've already made a topic asking about this so I removed the old one~
Please try not to make multiple topics about the same thing. Someone will get to you eventually :sleep:
-
Heyo, you've already made a topic asking about this so I removed the old one~
Please try not to make multiple topics about the same thing. Someone will get to you eventually :sleep:
Oops, sorry
-
No worries 👍