Open door without using tag

Hi, so i’m having a little problem with my open door script.

I’m making a multiplayer game and i use this script to open a door:

var smooth = 2.0;
var DoorOpenAngle = 90.0;
private var open : boolean;
private var enter : boolean;

private var defaultRot : Vector3;
private var openRot : Vector3;

var doorOpenSound : AudioClip;
var doorShutSound : AudioClip;

function Start(){
defaultRot = transform.eulerAngles;
openRot = new Vector3 (defaultRot.x, defaultRot.y + DoorOpenAngle, defaultRot.z);
}

//Main function
function Update (){

	if(open){
		//Open door
		transform.eulerAngles = Vector3.Slerp(transform.eulerAngles, openRot, Time.deltaTime * smooth);
			}else{
			//Close door
				transform.eulerAngles = Vector3.Slerp(transform.eulerAngles, defaultRot, Time.deltaTime * smooth);
}

	if(Input.GetKeyDown("f") && enter){
		open = !open;
	}
}



function OnGUI(){
if(enter){
GUI.Label(new Rect(Screen.width/2 - 75, Screen.height - 100, 150, 30), "Press 'F' to open");
}
}

//Activate the Main function when player is near the door
function OnTriggerStay (other : Collider){

if (other.gameObject.tag == "Player") {
enter = true;
}
}

//Deactivate the Main function when player is go away from door
function OnTriggerExit (other : Collider){
if (other.gameObject.tag == "Player") {
enter = false;
 }
}

Well obviously every player has the tag “player” so any player can open the door , even if their not inside the trigger.

My question is: is there any other way to do this without using tag? (or any other solution?).

Thank you

Another more “natural” solution could be that things open the door and the door has just one function. It could then be called by a script that is attached to the player.

void Update()
	{
		if (Input.GetKeyDown(KeyCode.F))
		{
			RaycastHit hit;
			if (Physics.Raycast(transform.position, transform.forward, out hit, 5f))
			{
				if (hit.collider.gameObject.GetComponent<DoorOpenAngle>() != null)
				{
					DoorOpenAngle.Open(); //you will need to expose this method for it to work
				}
			}
		}