My botAI script in my Feline Fighters game all of a sudden decided to not work any more and give me an error, cannot read property ‘enabled’ of null on line 29. Can someone look at it and see if you can figure it out… This worked perfectly fine last night.
So you’re passing a pc.Entity to the findByName function. If you check out the docs, you’ll see the function takes a string (entity name), not a pc.Entity.