You'd need to set up a script to detect the player hitting a button. Here's one from Reelism for you to use as a base.
To test it, run script 994 (puke 994 in console), then press the Use key to end the map.
- Code: Select all • Expand view
script 994 (void) // ending use button detection.
int buttons = GetPlayerInput(-1, INPUT_BUTTONS);
if (buttons == BT_USE)