Scripting/Server/Classes/Object/Remove
Deletes the object.
Contents
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.
Related pages
Section: Object
Categories: Server methods | Object