Difference between revisions of "Using Activated Object Reference"

Jump to navigation Jump to search
imported>Langerz82
imported>Langerz82
Line 43: Line 43:
* Ok next you need to provide your script that extends from the ActivatedObjectReference file. For this example we have a script that locks an object at a specified time. Copy the [https://gist.github.com/Langerz82/e3f271911472bc9aeb1b Timed Lock Example] to your Skyrim/Data/Scripts/Source folder.
* Ok next you need to provide your script that extends from the ActivatedObjectReference file. For this example we have a script that locks an object at a specified time. Copy the [https://gist.github.com/Langerz82/e3f271911472bc9aeb1b Timed Lock Example] to your Skyrim/Data/Scripts/Source folder.


* The following overrides the Conditionals to take into account day and time for the door Object and close.
* The following overrides the Conditionals to take into account day and time for the door Object to lock and unlock.


<source lang="papyrus">
<source lang="papyrus">
Line 83: Line 83:
</source>
</source>


* The following overides the Active/Inactive function by locking and unlocking the door respectively showing a message to the Users.
* The following overides the Active/Inactive function by locking and unlocking the door respectively and showing a message to the Users when a Line-Of-Sight and the Conditions hold true.


<source lang="papyrus">
<source lang="papyrus">
Line 102: Line 102:


* Find the jlTimedLock3 in the Creation Kit, under the Main menus Gameplay >> Papyrus Script Manager, look for jlTimedLock.
* Find the jlTimedLock3 in the Creation Kit, under the Main menus Gameplay >> Papyrus Script Manager, look for jlTimedLock.
* Attach it to a door object you wish to use as an example. [[File:PapyrusScriptManagerTimedLock.jpg]]
* Attach it to a door object you wish to use as an example. [[File:PapyrusScriptManagerTimedLock.jpg|400px]]


* Set the following Properties for the script.
* Set the following Properties for the script.
[[File:TimedLock_Properties.jpg]]
[[File:TimedLock_Properties.jpg|800px]]


* Save the Mod file and run and test in-game.
* Save the Mod file and run and test in-game.
Anonymous user

Navigation menu