GetAllPickups: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetAllPickups()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example..."
 
28days (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|This function gets all the pickup IDs in a table.}}


{{FuncSyntax|GetAllPickups()}}
{{FuncSyntax|GetAllPickups()}}
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns a table with pickup IDs.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
local pickups = GetAllPickups()
print("Pickups Count: "..#pickups..".")
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{PickupFunctions}}

Latest revision as of 08:10, 29 December 2019

GetAllPickups

Type: Function
Context: Server
Introduced: v1.0

Description

This function gets all the pickup IDs in a table.

Syntax

GetAllPickups()

Parameters

  • This function has no parameters.

Return Value

  • This function returns a table with pickup IDs.

Example

local pickups = GetAllPickups()
print("Pickups Count: "..#pickups..".")

See also