Home   Help Search Login Register  

Author Topic: detect ESC during a cutscene  (Read 391 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
detect ESC during a cutscene
« on: 21 Feb 2005, 03:19:11 »
Hello,

Simple question...probably not an easy answer...
Is there a way to check the player hits the ESC key during a cutscene (in the mission, not in the intro)?
Disableuserinput is not an option.










Search or search or search before you ask.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:detect ESC during a cutscene
« Reply #1 on: 21 Feb 2005, 03:35:46 »
Hey mate,

You could create an invisible dialog, and then createdialog it when the cutscene starts. When the player hits ESC, it will close the dialog, which will cause the dialog command to return FALSE. Knowing that, it is just a matter of putting in the proper checks/gotos/whatever into your cutscene, and you're good as gold.

Only problem with said method is that it would cause the mouse cursor to appear during the cutscene. Not really a huge problem, but worth noting.

On a side note, I have suspected that there are certain 'hidden/secret' global variables that BIS never told us about, but that tell us stuff like when the player presses certain keys. My evidence is in the "camera.sqs" script (found in DTA/Scripts.pbo), there is a line that waits for the variable "cheat0" to change before terminating the camera. There is nothing in the script that changes that variable, so perhaps pressing a certain key would change it. Its all speculation, but someone may be inclined to research it further.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Blanco

  • Former Staff
  • ****
Re:detect ESC during a cutscene
« Reply #2 on: 25 Feb 2005, 02:51:26 »
Inventive people here :)
Thx. ;)


Search or search or search before you ask.