User:PROXiCiDE/CreateStaticBook

From the CreationKit Wiki
< User:PROXiCiDE
Revision as of 21:25, 21 January 2013 by imported>PROXiCiDE
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creating a Readable Static Book

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