g_storyinzone_mode = {} function storyinzone2_init(e) g_storyinzone_mode[e] = 0 end function storyinzone2_main(e) PlayerDist = GetPlayerDistance(e) if PlayerDist < 120 and g_PlayerHealth > 0 then Prompt(" Press E to Collect potion") if g_KeyPressE == 1 then --- keypress here if g_storyinzone_mode[e] ~= nil then if g_storyinzone_mode[e] == 0 then g_storyinzone_mode[e] = 1 HideHuds() if radar_hideallsprites ~= nil then radar_hideallsprites() end else if g_storyinzone_mode[e] == 1 then PlaySound(e,0) PlayVideo(e,1) StopSound(e,0) g_storyinzone_mode[e] = 2 else if g_storyinzone_mode[e] == 2 then if radar_showallsprites ~= nil then radar_showallsprites() end ShowHuds() Destroy(e) ActivateIfUsed(e) g_storyinzone_mode[e] = 3 end end end end end end end