Difference between revisions of "Complete Example Scripts"

Jump to navigation Jump to search
m
imported>JustinOther
imported>JustinOther
Line 706: Line 706:
= Enable/Disable an object on a schedule =
= Enable/Disable an object on a schedule =


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.
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. If the pedestal is not applicable, use an L_LOS collision marker.


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

Navigation menu