Doors Lua API: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| zoneName || string | | zoneName || string | ||
Line 21: | Line 23: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| networkTable || Lua Table | | networkTable || Lua Table | ||
Line 32: | Line 36: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| keyName || string | | keyName || string | ||
Line 45: | Line 51: | ||
'''Expected parameter types''' | '''Expected parameter types''' | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
! Name !! Type | |||
|- | |- | ||
| keyName || string | | keyName || string | ||
Line 58: | Line 66: | ||
This file is auto generated, please don't edit manually! | This file is auto generated, please don't edit manually! | ||
'''Docs last hacked together on''': | '''Docs last hacked together on''': 10/11/2017 11:07 | ||
[[Category:Modding]][[Category:LuaAPI]] | |||
[[Category:Modding]] | |||
[[Category:LuaAPI]] |
Revision as of 12:25, 10 November 2017
Doors
Description
API to control the logic of doors in the mission
Functions
SetZoneKeys
Doors.SetZoneKeys(zoneName, keyNames)
Expected parameter types
Name | Type |
---|---|
zoneName | string |
keyNames | Lua Table |
Description: Sets a key as unlocking a specific zone
Returns: Nothing
SetNetwork
Doors.SetNetwork(networkTable)
Expected parameter types
Name | Type |
---|---|
networkTable | Lua Table |
Description: Sets the name of the network for the door system to use
Returns: Nothing
SetKeyOnDevice
Doors.SetKeyOnDevice(keyName, device)
Expected parameter types
Name | Type |
---|---|
keyName | string |
device | Lua Table |
Description: Sets a key as the current NFC file on a net device
Returns: Nothing
AssignKeyToCharacter
Doors.AssignKeyToCharacter(keyName, characterTable)
Expected parameter types
Name | Type |
---|---|
keyName | string |
characterTable | Lua Table |
Description: Adds a key to a characters inventory and sets it as the characters current NFC data
Returns: Nothing
This file is auto generated, please don't edit manually!
Docs last hacked together on: 10/11/2017 11:07