GetAllDoors

From Onset Developer Wiki
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