09-14-2014, 03:36
I'm trying to get slowmo to go back to timescale 1 when round ends, but I cant get anything to work. Heres the code:
timeScale()
{
if(level.timeScale)
{
setdvar("timescale", "0.5");
}
else
{
setdvar("timescale", "1");
}
level.timeScale = !level.timeScale;
self.menu["ui"]["menuDisp"][3] setText(level.timescale ? "^2Toggle slow timescale." : "^1Toggle normal timescale");
}
any help is appreciated. Thanks!
timeScale()
{
if(level.timeScale)
{
setdvar("timescale", "0.5");
}
else
{
setdvar("timescale", "1");
}
level.timeScale = !level.timeScale;
self.menu["ui"]["menuDisp"][3] setText(level.timescale ? "^2Toggle slow timescale." : "^1Toggle normal timescale");
}
any help is appreciated. Thanks!