User:PROXiCiDE/CreateStaticBook

From the CreationKit Wiki
< User:PROXiCiDE
Revision as of 21:16, 21 January 2013 by imported>PROXiCiDE (Created page with "== Creating 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 th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creating 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