Hello bully modders, today I want a little help with my STimeCycle's lua script...
Alright, here's the deal
I'm trying to spawn a Bif ped in a right local, It works, but it spawn alot of Bifs, I want to know if you guys have the answer to fix this, making it spawn only 1 Bif.
Here's my script, without the whole rest
main = function()
Wait(500)
LoadAnimationGroup("Boxing")
repeat
Prep()
Wait(0)
until not Alive
end
Prep = function()
if IsButtonPressed(0, 1) then
Bif = PedCreateXYZ(33, 94, -116, 6)
PedSetPedToTypeAttitude(Bif, 13, 0)
PedSetActionTree(Bif,"/Global/P_Bif","Act/Anim/P_Bif.act")
LoadActionTree("P_Bif")
LoadAnimationGroup("Boxing")
end
end