Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Are there any errors relating to your script? If so, tell me what it says.

There is not.

(1 edit)

Hmm, in OnTriggerEnter, change "other.name" to "other.tag". Does it work now?

No, that was not it.

Is your character at least wandering?

Yes

Maybe it is the ! in 

if (other.tag == "Player" & !this.collided)

You probably need to add RigidBody and a collider to the gameobject.

There already is one.

I made a copy of the Principle gameobject.