does the script go in root?
the script is in the enemyEntity right now and it says cant define enemyEntity
The attribute I added is enemyEntity
does the script go in root?
the script is in the enemyEntity right now and it says cant define enemyEntity
The attribute I added is enemyEntity
No.
That’s fine.
If it is an attribute then you have to use this.enemyEnity
, but if that’s the entity with the script you can also use this.entity
.
does it repeat itself?
What do you mean?