Scripting/Server/Classes/Object/Remove

Deletes the object.

Syntax

object.Remove()

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "remove" )
	{
		local obj = CreateObject( 1362, player.Pos );
		obj.Remove();
	}
}

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

Section: Object

Categories: Server methods | Object