I was looking for a way to display 3 images in a trigger zone in rapid succession in gameguru, so I scoured the forums and came upon
this old thread where ertlov did it with one image, and smallg troubleshooted it for him. I'm wondering if someone would be willing to do the same for me. Be gentle, it's my first time
local timer_started = nil
function shock_init(e)
LoadImages("shock",0)
LoadImages("shock",1)
LoadImages("shock",2)
end
function shock_main(e)
if g_Entity[e]['plrinzone']==1 then
if timer_started == nil then
StartTimer(e)
timer_started = 1
end
SetImagePosition(50,50)
ShowImage(0)
if GetTimer(e)>100 then
HideImage(0)
ShowImage(1)
if GetTimer(e)>200 then
HideImage(1)
ShowImage(2)
if GetTimer(e)>300 then
HideImage(2)
Destroy(e)
end
end
end
end
end
i test this in a trigger zone but nothing happens. I get no crashes or errors when loading or walking in the cutscene, nothing happens. can anyone spot what I'm doing wrong? this is just about the only thing stopping direct action 2 from release!
here is my folder setup:
I have a lua file for it in scriptbank plus a folder for the images of the same name
shock000, 001, 002 etc.
assistance would be greatly appreciated!!