Difference between revisions of "GetAllDoors"

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Get all doors as a table. Useful for loops.}} {{FuncSyntax|GetAllDoors()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnVa...")
 
(No difference)

Latest revision as of 11:53, 8 October 2019

GetAllDoors

Type: Function
Context: Server
Introduced: v1.0

Description

Get all doors as a table. Useful for loops.

Syntax

GetAllDoors()

Parameters

  • This function has no parameters.

Return Value

  • Returns a table of all doors.

Example

AddCommand("open", function(player)
	for k, v in pairs(GetAllDoors()) do
		SetDoorOpen(v, true)
	end
end)

See also

__EDIT_ME__