What is the context of that question/ problem?
One easy way (assuming I understand your issue correctly) is to use global variables:

var my_function_off = 0; // or call it _on and set it to 1 at game start

void my_function()
{
if(my_function_off) return;
... your regular my_function content here
}


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends