Scripting/Squirrel/Functions/Pickup.Remove

From Vice City Multiplayer [MIRROR]
Revision as of 20:37, 30 January 2017 by Thijn (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Syntax

bool Pickup.Remove

Arguments

> Pickup - The pickup instance.

Example

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

function onScriptLoad()
{
   myPickup <- CreatePickup( 284, 1, Vector( -2261.12, 753.12, 211.123 ) );
}

function onScriptUnload()
{
   myPickup.Remove();
}

Related Functions