Scripting/Squirrel/Functions/Pickups/SetOnceOnly
From VC-MP Wiki
This instance variable controls if the pickup should only spawn once.
Syntax
pickup.SetOnceOnly = bool SpawnOnce
Example
In this example the pickup that is being created will only spawn once.
function onScriptLoad( ) { local pickup = CreatePickup( 336, Vector( 1, 1, 1 ) ); pickup.SetOnceOnly(); }
Notes
The function CreatePickup and call onScriptLoad were used in in this example. More info about them in corresponding pages.
