Scripting/Squirrel/Functions/Object.Delete

From Vice City Multiplayer
Jump to: navigation, search

Syntax

Object.Delete

Arguments

Object - The object instance.

Example

This example will create an object when the script loads and deletes it when it unloads.

function onScriptLoad()
{
   myObject <- CreateObject( 334, 1, Vector( -2261.12, 753.12, 211.123 ),255 );
}

function onScriptUnload()
{
   myObject.Delete();
}

Related Functions