Here's a script to pause the game
//Link a EventOnInput to this script
//Link a EventOnInput to this script
Code: [Select]
if(iInitializing())
a=0;
if(IN_0==1) //Event on input - input state
{
a++;
iSimulationFrqSet(0.000666f);
if(a>0)
iSimulationFrqSet(0);
//Make sure you stop some objects like particles, timers, etc.
}
else
{
iSimulationFrqSet(0.016666f);
//Make sure you start the stopped objects
}