function collect_flashlight2_init(e) end function collect_flashlight2_main(e) PlayerDist = GetPlayerDistance(e) if PlayerDist < 80 and g_PlayerHealth > 0 then PromptDuration("Collected flashlight",3000) PlaySound(e,0) is_flashlight_active = 1 SetFlashLightKeyEnabled(1) Show(3) Destroy(e) ActivateIfUsed(e) end end