1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

KeyEvent during Cinematic

Discussion in 'Triggers & Scripts' started by Markhus, May 1, 2019.

  1. Markhus

    Markhus

    Joined:
    Apr 17, 2019
    Messages:
    4
    Resources:
    0
    Resources:
    0
    Hello everyone. You probably already figured out my question :D Is it possible to register a key event during cinematic? A pretty simple question, yet help would be much appreciated :)
     
  2. Sabe

    Sabe

    Joined:
    Jul 30, 2018
    Messages:
    272
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Well, as far as I know, the only key events that are registered are Esc (Player - Cinematic Skipped event) and arrow keys (Player - Keyboard Event). You could have a trigger for these events and then turn a boolean variable on, when they are pressed. Then you can check in another trigger if the variable is true or false.

    Alternatively you could have a unit with a custom ability with a certain hotkey, but that will require the unit to be selected by the player.
     
  3. Aeryn

    Aeryn

    Joined:
    Apr 17, 2017
    Messages:
    266
    Resources:
    0
    Resources:
    0
    It is possible by using the new natives, however you gotta wait for it or you can download the ptr if you want :)
     
  4. Markhus

    Markhus

    Joined:
    Apr 17, 2019
    Messages:
    4
    Resources:
    0
    Resources:
    0
    Thanks for the replies guys, as far as im aware the PTR editor could mess up the map, or at least the map made with PTR would be unplayable outside PTR. I will try the method mentioned by Sabe, if that doesn't work i guess i'll focus on terraining for a little while, until the patch is officially launched.
    Cheers.
     
  5. loktar

    loktar

    Joined:
    Nov 2, 2004
    Messages:
    715
    Resources:
    25
    Models:
    3
    Icons:
    16
    Packs:
    1
    Tools:
    2
    Spells:
    2
    Tutorials:
    1
    Resources:
    25
    So in 1.31 we'll be able to detect event for (almost) any key? Nice.