-- LUA Script - precede every function and global member with lowercase name of script + '_main' -- Displays Intro local pressed = 0; local hud_on = 0; function objective001_init(e) LoadImages("resist",0) end function objective001_main(e) --Key Action if GetScancode() == 24 and pressed == 0 then if hud_on == 1 then HideImage(0); PlayNon3DSound(e,1) hud_on = 0; pressed = 1; else SetImagePosition(50,50) ShowImage(0); PlayNon3DSound(e,0) hud_on = 1; pressed = 1; end elseif GetScancode() == 0 then pressed = 0 end end