Jump to content

Creating Interruptable Clip for Skyrim..


Recommended Posts

Hi,

 

I'm trying to let the PC can watch a scene in the game.

 

I created a trigger in a room. I have script for it. The script is a little bit modified.

 

 

 

 

Scriptname Room1BikScript extends ObjectReference  


Actor property PlayerRef Auto
 
Event OnTriggerEnter(ObjectReference ref)
if ref==PlayerRef
     Game.PlayBink("Room1.bik", true, true, true, true)
    
    endIf


EndEvent

 

 

 

 

 

When the PC enters in the Trigger Cube, the scene starts. There is no problem about that. However I selected "True" for the Interruptable option, it doesn't work at all. When I've pressed ESC button, it's not functioning.

 

I tried using 1 1 1 1 also. But, I was not successful.

 

If you can help me anyway, I'll really appreciate...

Link to comment

Good question, but as interruptable is the default value, you don't have to set it.
Maybe adding a DoOnce helps, if not try using an activator.

Scriptname Room1BikScript extends ObjectReference  

Actor property PlayerRef Auto
Bool DoOnce

Event OnTriggerEnter(ObjectReference ref)
    if (ref==PlayerRef) && (!DoOnce)
        Game.PlayBink("Room1.bik")
        DoOnce = 1
    EndIf
EndEvent 

Downside: it plays only once.

But if it works then you better move this script to an activator.

Link to comment

Good question, but as interruptable is the default value, you don't have to set it.

Maybe adding a DoOnce helps, if not try using an activator.

Scriptname Room1BikScript extends ObjectReference  

Actor property PlayerRef Auto
Bool DoOnce

Event OnTriggerEnter(ObjectReference ref)
    if (ref==PlayerRef) && (!DoOnce)
        Game.PlayBink("Room1.bik")
        DoOnce = 1
    EndIf
EndEvent 

Downside: it plays only once.

But if it works then you better move this script to an activator.

 

Playing once is a progress. It's better than nothing. Before, when the scene finishes, it returns to the game automatically.

And when the PC goes to the cube activator trigger each time, the scene starts all the time.

In Fall-Out, using ESC button works as I read. But, I didn't understand why it doesn't work in Skyrim.

 

I'll try your script.

 

Thank You...

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use