Scripting/Server/Functions/OpenGarage

Opens/closes a garage door for everyone. id is one of the *_GARAGE constants (1-26).

Syntax

OpenGarage(id)
CloseGarage(id)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "opengarage" )
	{
		OpenGarage( 0 );
	}
}

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

Section: Creating world entities

Categories: Server functions | Creating world entities