Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
583 B
26 lines
583 B
Scriptname PlayerBookShelfClickTriggerSCRIPT extends ObjectReference
|
|
|
|
import debug
|
|
import utility
|
|
|
|
ObjectReference Property ShelfContainer auto hidden
|
|
|
|
Keyword Property BookShelfContainer Auto
|
|
|
|
Bool Property AlreadyLoaded = FALSE Auto Hidden
|
|
|
|
|
|
EVENT OnCellLoad()
|
|
if AlreadyLoaded == FALSE
|
|
ShelfContainer = GetLinkedRef(BookShelfContainer)
|
|
AlreadyLoaded = TRUE
|
|
endif
|
|
endEVENT
|
|
|
|
|
|
EVENT OnActivate(ObjectReference TriggerRef)
|
|
|
|
;Trace("DARYL - " + self + " I've been activated, opening container: " + ShelfContainer)
|
|
ShelfContainer.Activate(Game.GetPlayer(), FALSE)
|
|
|
|
endEVENT
|
|
|