Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

How to disable skipping cutscenes

  • #1, by Uraal 11 years ago Zitieren
    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?
  • #2, by afrlme 11 years ago Zitieren
    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")	
    

    ... 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
  • #3, by Uraal 11 years ago Zitieren
    https://dl.dropboxusercontent.com/u/20899096/kickstarter-transparent-300x187.png

    Cheers, once again thank you.
  • #4, by afrlme 11 years ago Zitieren
    haha. Clever git! grin