Open main menu
Home
Random
Log in
Settings
About the CreationKit Wiki
Disclaimers
the CreationKit Wiki
Search
Editing
Complete Example Scripts
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Making a Cool Cut-Scene= <syntaxhighlight lang="Papyrus"> ScriptName Cutscene Extends ObjectReference Actor Property PlayerREF Auto ObjectReference Property Point1 Auto ObjectReference Property Point2 Auto ObjectReference Property Point3 Auto Event OnTriggerEnter(ObjectReference akActionRef) If akActionRef == PlayerREF ; Limit this trigger to the player only. PlayerREF.SetAlpha(0.0) PlayerREF.SetGhost(True) Game.DisablePlayerControls(True, True, True, False, True, False, True) ; Disable all controls except looking. Utility.Wait(0.1) ; Give the script time... PlayerREF.TranslateToRef(Point1, 100.0) Utility.Wait(5.0) ; After 5 seconds, proceed to next point. PlayerREF.TranslateToRef(Point2, 50.0) Utility.Wait(10.0) ; After 10 seconds, go to next area PlayerREF.TranslateToRef(Point3, 200.0) Utility.Wait(20.0) ; Watch the final scene, and then... PlayerREF.SetAlpha(1.0) PlayerREF.SetGhost(False) Game.EnablePlayerControls() EndIf EndEvent</syntaxhighlight> '''How to use this script''': Make a new trigger box, and then add this script to it. Make 3 XMarkers, and define them in the Properties Window. Enter your new trigger, and see your cool cut-scene!
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)