• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script help
#1
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!
  Reply
#2
(09-14-2014, 03:36)swegspoder69 Wrote: 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!

Spoder, ur cute. 11/10.
  Reply
#3
1) timescale is latched or readonly ( try to turn sv_cheats on ).
2) Set initial value for level.timescale.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Script problem mazerka 3 3,527 09-15-2014, 01:52
Last Post: DidUknowiPwn
  Help Script Problems Ltave5 2 3,058 09-02-2014, 08:06
Last Post: Ltave5

Forum Jump:


Users browsing this thread: 1 Guest(s)