Menu
Login
Language
DE EN FR ES IT CZ
Back

How to prevent skipping videos with ESC

  • #1, by AkcayKaraazmak Wednesday, 28. February 2018, 03:46 8 years ago Quote
    Hi guys,

    Is it possible to prevent skipping videos by pressing ESC. I can make ESC useless with LEE's script, but because it also opens the menu so I just need ESC to open the menu when pressed but not skipping videos.

    Cheers smile


    Great Poster

    442 Posts

  • #2, by shico Wednesday, 28. February 2018, 10:55 8 years ago Quote
    I think this topic was covered in this post here.

    Try the "hide cursor" action part under miscellaneous as AFRLme suggested in that post, and then "show cursor" after video. Could work for videos as it worked for the cutscenes.

    Newbie

    21 Posts

  • #3, by afrlme Wednesday, 28. February 2018, 11:51 8 years ago Quote
    don't think that's possible mate with regular videos. you either disable escape entirely when videos are played or alternatively you could use the new in-scene video plugin thing that Simon created as those can't be skipped. Switch to an empty scene. wrap the video in a hide/show cursor thing with a pause the length of the video after the action part for playing the video.

    Do you really want people to be able to access the menu while a video is playing? If you don't then just disable esc when a video is showing & enable it once the video is done.

    Imperator

    7290 Posts

  • #4, by AkcayKaraazmak Thursday, 01. March 2018, 11:38 8 years ago Quote
    Thank you mates, ... Lee you wrote that just disable the ESC, how I will do that? I wrote a small code just to open the menu with ESC but dont know how to diable it completly? ... As you say yea no need to open menu while  video is playingsmile .. But how I will do it? smile

    Great Poster

    442 Posts

  • #5, by afrlme Thursday, 01. March 2018, 12:33 8 years ago Quote
    Insert an if query into the script to check if a condition or Lua variable is true or false.

    It's shown/explained here in the tutorial I wrote ages back. Back then videos still got skipped with ESC, but I don't know if that's the case anymore as I haven't tried testing it since.

    Imperator

    7290 Posts