Difference between revisions of "Complete Example Scripts"

Jump to navigation Jump to search
3 bytes removed ,  19:46, 25 April 2013
m
imported>JustinOther
imported>JustinOther
Line 706: Line 706:
= Enable/Disable an object on a schedule =
= Enable/Disable an object on a schedule =


Given: You have a pedestal with a magical statue placed on it which is to enable at 6am every morning and disable at 6pm every evening. Glue the below to the pedestal which must always be enabled, filling the properties in the Creation Kit ensuring kYourObject is either renamed to match the EditorID of your statue upon auto-fill or manually pointed to it.
Say you have a pedestal with a magical statue placed on it which is to enable at 6am every morning and disable at 6pm every evening. Glue the below to the pedestal which must always be enabled, filling the properties in the Creation Kit ensuring kYourObject is either renamed to match the EditorID of your statue upon auto-fill or manually pointed to it.


<source lang="papyrus">ScriptName YourScript Extends ObjectReference
<source lang="papyrus">ScriptName YourScript Extends ObjectReference
Anonymous user

Navigation menu