Whenever my player touches the trigger, it automatically deactivates it. How do I make it so touching the trigger does not automatically disable it for later use?
This isn’t the default behaviour… so either there is a script running that performs this, or there is a misunderstanding about something. Can you explain a little more fully, with the scripts if there are any?
The only script there is, is the one on the player:
if (other.gameObject.CompareTag ("Damaging"))
{
st.gameObject.SetActive (false);
tf.position = new Vector3(0, 0, 0);
st.gameObject.SetActive (true);
}
The above is a snippet of the code that references the trigger on the other object. The code sets the player object to false, transports the player to origin, then sets the player to true. This is all done once the player enters the trigger, of course.