Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
imported>MoopusMaximus
No edit summary
imported>MoopusMaximus
Line 779: Line 779:
                   Game.GetPlayer().SetGhost(True)
                   Game.GetPlayer().SetGhost(True)
                   Game.DisablePlayerControls(true, true, true, false, true, false, true) ;Disables all controls except looking.
                   Game.DisablePlayerControls(true, true, true, false, true, false, true) ;Disables all controls except looking.
         Utilty.Wait(0.1) ;Give the script time...
         Utility.Wait(0.1) ;Give the script time...
                   Game.GetPlayer().TranslateToRef(Point1, 100)
                   Game.GetPlayer().TranslateToRef(Point1, 100)
         Utility.Wait(5.0) ;After 5 seconds, proceed to next point.
         Utility.Wait(5.0) ;After 5 seconds, proceed to next point.
Line 793: Line 793:
</Source>
</Source>


'''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
'''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!

Navigation menu