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..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|This function gets all the pickup IDs in a table.}} | ||
{{FuncSyntax|GetAllPickups()}} | {{FuncSyntax|GetAllPickups()}} | ||
Line 8: | Line 8: | ||
{{FuncNoParam}} | {{FuncNoParam}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns a table with pickup IDs.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
local pickups = GetAllPickups() | |||
print("Pickups Count: "..#pickups..".") | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{PickupFunctions}} |
Latest revision as of 08:10, 29 December 2019
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
- GetPickupCount
- GetStreamedPickups
- GetPickupLocation
- SetPickupPropertyValue
- GetPickupPropertyValue
- SetPickupVisibleForPlayers
- GetAllPickups
- CreatePickup
- DestroyPickup
- IsValidPickup
- SetPickupScale
- GetPickupScale
- SetPickupDimension
- GetPickupDimension
- SetPickupVisibility
- SetPickupOutline
- IsPickupStreamedIn