Scripting/Squirrel/Functions/Object.Delete

From Vice City Multiplayer
Revision as of 12:12, 19 February 2017 by Zeus (talk | contribs) (Minor change in info (create a pickup) to (create an object))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

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