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..." |
FlyingFork (talk | contribs) No edit summary |
||
Line 20: | Line 20: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:DoorFunctions}} |
Latest revision as of 11:51, 26 June 2021
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)