Bully-Board

Bully Modding Section => Modding Questions/Help => Topic started by: Ming on March 11, 2022, 11:36:15 PM

Title: CarGetDamageNumber() not work on AE
Post by: Ming on March 11, 2022, 11:36:15 PM
Is CarGetDamageNumber() not work on AE ?
Maybe cars of AE can't be damaged, it is a smash car mission in SE, but not AE
Title: Re: CarGetDamageNumber() not work on AE
Post by: RBS ID on March 12, 2022, 02:01:25 AM
It work too on AE. Here's the example script I made to test. The function return numbers.
Code: [Select]

function main()
while not SystemIsReady() do
Wait(0)
end
Wait(3000)
local X, Y, Z = PlayerGetPosXYZ()
local myVeh = VehicleCreateXYZ(math.random(292, 294), X + 3, Y + 3, Z)
X, Y, Z = nil, nil, nil
local showText = false
while true do
Wait(0)
if IsButtonBeingPressed(3, 0) then
showText = not showText
end
if showText then
MinigameSetAnnouncement(tostring(CarGetDamageNumber(myVeh)), true)
--MinigameSetAnnouncement(type(_G.CarGetDamageNumber), true) -- "function"
end
end
end

Title: Re: CarGetDamageNumber() not work on AE
Post by: Ming on March 12, 2022, 05:34:24 AM
Thanks, I try CarGetDamageNumber() again