• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Lock keyboards during animation?

Status
Not open for further replies.
Level 9
Joined
Aug 11, 2007
Messages
429
When I play my units animation, players always hit ESC to make the text disappear, and we just end up waiting. Is their a way to disable the keyboard?
 
Level 11
Joined
Feb 14, 2009
Messages
884
There's an event called "A player skips cinematic sequence" or something. When it runs, disable cinematic mode, restore control etc for all players.
 
Level 9
Joined
Aug 11, 2007
Messages
429
Wow, their isn't just a turn off keyboard option, ok. And you say that makes skipping possible? Well I don't want skipping, unless it was a typo for impossible.
 
Level 4
Joined
Sep 27, 2009
Messages
119
You could basically do what was mentioned before use time counters so you can reset the cinematic to the position it was when it was skipped (or relatively close).

I would go about having a variable ready for this named CinematicTime or something of the like, where when the cinematic trigger went into action it started the timer.

  • Cinematics:
    • Events:
      • A player skips a cinematic
    • Conditions:
      • (Timer) Less than or equal to 10 seconds
    • Actions:
      • Trigger - Turn off <Cinematic>
      • Trigger - Turn on <Cinematic Repeat 1>
You could use something similar to that, or If/Then/Else functions for each little time snippet of your cinematic.

It wouldn't be skippable and you still risk it with jerks who will constantly push ESC so you are there forever.
 
Status
Not open for further replies.
Top