SetWeather: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
Line 4: Line 4:


==Syntax==
==Syntax==
  bool [[setWeather]] ( int primary, int secondary )
  bool [[setWeather]] ( int id )


===Required Arguments===
===Required Arguments===
*'''primary''': The new primary weather (range 0-9)
*'''id''': The new weather id (range 0-19)
*'''secondary''': The new secondary weather (range 0-9)


==Example==
==Example==
  [[setWeather]] ( 9, 9 )
  [[setWeather]] ( 9, 9 )
  [[serverChat]] ( "Weather changed to foggy!" )
  [[serverChat]] ( "Weather changed to foggy!" )

Revision as of 17:31, 8 April 2006

Description

This function sets the current primary and secondary weather to the given values.

Syntax

bool setWeather ( int id )

Required Arguments

  • id: The new weather id (range 0-19)

Example

setWeather ( 9, 9 )
serverChat ( "Weather changed to foggy!" )