Jump to content

How to make a single book readable by willow?

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...