SetWeatherLock

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function locks or unlocks the automatic weather cycle.

Syntax

  1. bool SetWeatherLock( bool bLocked )

Arguments

  • bLocked - A boolean representing whether the weather cycle should be locked or unlocked

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "weatherlock" ) SetWeatherLock( true );
  5. }
  6.  
  7.  

Notes

This command is used to stop the weather inside of the server from changing.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox