search_sonic = 0 -- START OF FRAME function search_init(e) search = 0 stop = 0 end -- ALWAYS -- function search_main(e) PromptTextSize(3) PlayerDist = GetPlayerDistance(e) if (PlayerDist < 100 ) and g_PlayerHealth > 0 then GetEntityPlayerVisibility(e) if 1 then Prompt("Press E to Search") -- ON PRESS E SHOW SEARCH if g_KeyPressE == 1 and search == 0 then search = search + 1 PlaySound(e,0) FreezePlayer(e) --LookAtPlayer(e)-- end if search > 0 then search = search + 1 Text(28,40,1," It's Locked... ") Text(28,45,1," ") Text(28,50,1," ") Text(28,55,1," ") Text(28,60,1," ") Text(28,65,1," ") end -- end get dist end end -- RESET to 0 if g_KeyPressE == 1 and search >= 50 then search = -50 -- LookAtPlayer(e)-- UnFreezePlayer(e) end if search < 0 and search <= 0 then search = search +1 end -- END ALWAYS-- end