I think when you set an entity transparent start a function that checks this entity every frame if its still between the camera and player, and if not make the entity intransparent and end the function. This is certainly easier than a linked list and also the third person camera of the templates used it (I believe).