diff options
author | Barichello <artur@barichello.me> | 2022-02-19 01:04:40 -0300 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-19 01:04:40 -0300 |
commit | f8d93a1085c9a35762eaa2cd26304c722306dd19 (patch) | |
tree | 606725d75be8346f450aef298e3916f88f8502d4 | |
parent | 6890f7c79c33543036d14feadfa71aedd22ca183 (diff) | |
download | NorthstarMods-f8d93a1085c9a35762eaa2cd26304c722306dd19.tar.gz NorthstarMods-f8d93a1085c9a35762eaa2cd26304c722306dd19.zip |
Add helper function SetScoreLimit
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut index 1644afd9..c0e69ba5 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/_utility.gnut @@ -3967,6 +3967,11 @@ void function SetRoundEndTime(float seconds) SetServerVar( "roundEndTime", Time() + seconds ) } +void function SetScoreLimit(int newLimit) +{ + SetPlaylistVarOverride( "scorelimit", string(newLimit) ) +} + int function GameTime_TimeLimitSeconds() { if ( IsRoundBased() ) |