Difference between revisions of "MDE Scripting: OpenSeason"

From Nomad DB
(Created page with "{| class="wikitable" !Syntax |<syntaxhighlight lang="lua">game.traffic:OpenSeason(number seasonID)</syntaxhighlight> |- !Module |[[MDE Scripting: Game Library#Traffic|Traffic]...")
 
 
Line 1: Line 1:
 +
{{Page_MDE}}
 
{| class="wikitable"
 
{| class="wikitable"
 
!Syntax
 
!Syntax

Latest revision as of 19:27, 27 October 2020

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