Scripting/Squirrel/Functions/Object.Delete: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
m (Edited it cuz there were some mistakes in the script)
Line 1: Line 1:
== Syntax ==
== Syntax ==


<pre>bool Object.Remove</pre>
<pre>Object.Delete</pre>


== Arguments ==
== Arguments ==


'''> Object''' - The object instance.
'''Object''' - The object instance.


== Example ==
== Example ==

Revision as of 14:11, 14 August 2016

Syntax

Object.Delete

Arguments

Object - The object instance.

Example

This example will create a pickup when the script loads and deletes it when it unloads.

<source lang=squirrel> function onScriptLoad() {

  myObject <- CreateObject( 334, 1, Vector( -2261.12, 753.12, 211.123 ),255 );

}

function onScriptUnload() {

  myObject.Delete();

}