GetAllDoors

From Onset Developer Wiki
Revision as of 09:53, 8 October 2019 by BlueMountains (talk | contribs) (Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Get all doors as a table. Useful for loops.}} {{FuncSyntax|GetAllDoors()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnVa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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__