PatrolPath resets to null on play

Hi,

Like in the topic, I assign the PatrolPath to an enemy but when I start the game the PatrolPath on the AIController component get set to null.

If during play mode I assign the path again the guard starts following it as expected.

What is happening?

Found it, my bad, was experimenting and left a

patrolPath = GetComponent<PatrolPath>();

in Start function.

That would do it. Good job getting that sorted!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms