MDE Scripting: OpenSeason

From Nomad DB
Revision as of 20:53, 17 October 2020 by Deewarz (talk | contribs) (Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.traffic:OpenSeason(number seasonID)</syntaxhighlight> |- !Module |[[MDE Scripting: Game Library#Traffic|Traffic]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Syntax
game.traffic:OpenSeason(number seasonID)
Module Traffic
Library Game
Game Mafia: Definitive Edition


Description

Set the current season ID.

You have to close the previous season before with CloseSeason.


Parameters

Name Type Description
seasonID number Find season id here : Seasons


Returns

Returns nothing.


Examples

game.traffic:CloseSeason() -- closes the previous season
game.traffic:OpenSeason(1) -- set the current season as the year 1930