Talk:Book Script

From the CreationKit Wiki
Jump to navigation Jump to search

Creating a Readable Static Book[edit | edit source]

The following requires you have knowledge of creating Activators, what this does is allows you to read a book from a placed Activator so that it does not require it to be in the Players Inventory

Book Property pBook Auto
Event OnActivate(ObjectReference akActionRef)
	ObjectReference pBookRef = Game.GetPlayer().PlaceAtMe(pBook, abInitiallyDisabled = true)
	if pBookRef != none
		pBookRef.Activate(Game.GetPlayer())
		pBookRef.Delete()
	endif
EndEvent