VyTurtle Posted September 26, 2019 Share Posted September 26, 2019 Hey, I'm trying to create a book for willow but I'm running into the problem that she can't read them. I dont want to give her the reader component though, as I only want her to be able to read this single book. Does anyone know of a way to solve this? Link to comment Share on other sites More sharing options...
Ultroman Posted September 27, 2019 Share Posted September 27, 2019 Take a look at how the reader component works. It has our favorite thing: a non-local function ripe for extension. Add the reader component to her, and then extend the Read(book) function to return false if the book does not have the right .prefab and otherwise return the result of the original Read(book) function. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now