How to create a metroid prime style lock on system

Thanks thats actually super helpful, ive been looking everywhere trying to find what the basics i need so that I could research them.