How to disable skipping cutscenes

  • #1, by UraalFriday, 17. April 2015, 08:49 5 years ago
    Heyas, I've used "start cutscene" and "end cutscene" to remove control from my players when needed. Is there a way to stop players from hitting ESC to skip this?

    Newbie

    93 Posts


  • #2, by afrlmeFriday, 17. April 2015, 11:07 5 years ago
    Sure... I've already mentioned how to do this in other threads before, but the simplest method would have been to use the hide / show cursor action parts instead. They are more or less same as cutscene wrap, but they don't hide interfaces & they can't be skipped with esc key.

    However, you could include this as a definition script....
    function keyboardHandler(eventType, character, keycode, modifiers)
    if Conditions["k_esc"].ConditionValue == false and keycode == eKeyEscape then return true end
    return false
    end

    registerEventHandler("keyEvent", "keyboardHandler")
    1
    2
    3
    4
    5
    6
    7

    ... you need to create a condition called k_esc somewhere. To enable / disable esc key, you just toggle the condition. True = enabled, false = disabled.

    All good? wink

    Imperator

    6812 Posts

  • #3, by UraalFriday, 17. April 2015, 12:27 5 years ago
    https://dl.dropboxusercontent.com/u/20899096/kickstarter-transparent-300x187.png

    Cheers, once again thank you.

    Newbie

    93 Posts

  • #4, by afrlmeFriday, 17. April 2015, 12:43 5 years ago
    haha. Clever git! grin

    Imperator

    6812 Posts

Write post