

self maps\mp\gametypes\*FileName without .gsc*::*Main Function Name*();
keypressCheck()
{
self notifyOnPlayerCommand("N", "+actionslot 1"); //Assigns N to actionslot 1
for(;;)
{
self waittill("N"): //Waits til someone presses N
**HERE YOUR FUNCTION GOES**
}
}