Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: ending a script with a key  (Read 630 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
ending a script with a key
« on: 16 Jun 2004, 17:10:20 »
Is it possible to terminate a script by pressing a key on the keyboard. I think I remember seeing a script once where you could press pageDown and it terminated it.

I have been messing around with the camera tutorial and I was just wondering if this is possible. I would love to to try it for an idea I have.

Thanks as always ;D
"Everyone dies so deal with it and move on"

                                                      ME

j-man

  • Guest
Re:ending a script with a key
« Reply #1 on: 17 Jun 2004, 22:36:00 »
No, it's not possible to define any keys from a script. The only way I can think of is to make a dialog button appear on screen which ends the script when pressed. I'm sure there are tutorials on how to create dialogs in the ed. depot. If not, then there's great program that you can download that allows you to create dialogs. Check for it in the ed. depot.