hey guys Please look afther the functio else thare is the problem but i cant fix it thanks
var Component : GUIText;
function OnTriggerEnter(other : Collider) {
Component.guiText.text = "Press f to talk to the Comander";
}
function OnTriggerStay(other : Collider) {
if( Input.GetKeyDown( "f" ) )
{
audio.Play(03);
}
}
function OnTriggerExit(other : Collider) {
Component.guiText.text = "";
active = false;
}
}
else
{
//here is the problem it wont become visible again the first time i trigger it it works fine
//But when i walk in again nothing happens how??
if function OnTriggerEnter(other : Collider) {
Component.guiText.text = "Press f to talk to the Comander";
}
}