Well, you could call the function from the GSC file. The function to activate the menu:
You would add this code to the _rank.gsc where you would add an check if the player presses an button, and then call the function like showed above.Code:self maps\mp\gametypes\*FileName without .gsc*::*Main Function Name*();
Code:keypressCheck() { self notifyOnPlayerCommand("N", "+actionslot 1"); //Assigns N to actionslot 1 for(;;) { self waittill("N"): //Waits til someone presses N **HERE YOUR FUNCTION GOES** } }Key detection copy from: master131 here