Scripting/Server/Functions/SetIslands

(v0.3.1-r5+) true = every island unlocked: the Portland - Staunton bridge is repaired (the default; islands on|off in server.conf sets the start value). false swaps the bridge pieces (and their far LOD models) back to the damaged ones of the original game start. Applies to everybody, including players who join later. Numbers work too (1 / 0).

Syntax

SetIslands(bool)
GetIslands()

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setislands" )
	{
		SetIslands( true );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: World settings

Categories: Server functions | World settings