Difference between revisions of "User:PROXiCiDE/CreateStaticBook"

From the CreationKit Wiki
Jump to navigation Jump to search
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...")
 
imported>PROXiCiDE
m
 
Line 1: Line 1:
== Creating Readable Static Book ==
== 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
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



Latest revision as of 21:25, 21 January 2013

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