GetAllDoors: Difference between revisions

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 edit summary
 
Line 20: Line 20:


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:DoorFunctions}}

Latest revision as of 11:51, 26 June 2021

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