Jump to content

Bookshelf Bug Books become deleted


Estroya

Recommended Posts

Hey everyone i have a problem with my custom bookshelves. At first i had the bug that additional places were created when I took a book directly from the shelf. To fix that i copied the PlayerBookShelfTriggerScript and deleted this two lines from the copied version, like it was recommended in another topic.

 

(Shelfcontainer as PlayerBookShelfContainerScript).CurrentBookAmount = (Shelfcontainer as PlayerBookShelfContainerScript).CurrentBookAmount - 1
(ShelfContainer as PlayerBookShelfContainerScript).RemoveBooks((TriggerRef.GetBaseObject()), 1)

 

Now the shelf counts the number of free places right, but now every third time when i activate the shelf all books are deleted. I just removed the vanilla triggerscript from the trigger and added my version with the deleted lines to it.

 

Now how can i get it that the bug with the additional places is fixed without that the books become deleted?

Edited by Estroya
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...