I made a explosion from a door in 100 frames.
See video.
It actually works.
I made a trigger script for that, i can explode the door but then the next door and then again the next door.
See video
They are building door faster then i can blow up
How do i made the scrip to stop after the blowup.
function trigger_init(e)
end
function trigger_main(e)
if GetPlayerDistance(e) <= 150 then
Prompt("Press E to Blow up the wall")
if g_KeyPressE == 1 and pressed == 0 then
SetAnimation(0)
PlayAnimation(e);
CollisionOff(e)
pressed = 1
end
end
if g_KeyPressE == 1 and pressed == 0 then
CollisionOff(e)
end
pressed = 1
if pressed == 1 and g_KeyPressE == 0 then
pressed = 0
end
end
Many thanks
Harry