Lockpick
Part of openmw.types
Usage:
local Lockpick = require('openmw.types').Lockpick
Type types
| types.Lockpick |
#Lockpick functions |
Type Lockpick
| Lockpick.baseType | |
| Lockpick.objectIsInstance(object) |
Whether the object is a Lockpick. |
| Lockpick.record(objectOrRecordId) |
Returns the read-only #LockpickRecord of a lockpick |
| Lockpick.records |
A read-only list of all #LockpickRecords in the world database. |
Type LockpickRecord
| LockpickRecord.icon |
VFS path to the icon |
| LockpickRecord.id |
The record ID of the lockpick |
| LockpickRecord.maxCondition |
The maximum number of uses of this lockpick |
| LockpickRecord.model |
VFS path to the model |
| LockpickRecord.mwscript |
MWScript on this lockpick (can be empty) |
| LockpickRecord.name |
The name of the lockpick |
| LockpickRecord.quality |
The quality of the lockpick |
| LockpickRecord.value | |
| LockpickRecord.weight |
Type types
Field(s)
- #Lockpick types.Lockpick
-
#Lockpick functions
Type Item
Type Lockpick
Extends #Item
Lockpick functions
Field(s)
- Lockpick.objectIsInstance(object)
-
Whether the object is a Lockpick.
Parameter
-
openmw.core#GameObject object:
Return value
#boolean:
-
- Lockpick.record(objectOrRecordId)
-
Returns the read-only #LockpickRecord of a lockpick
Parameter
-
#any objectOrRecordId:
Return value
-
- #list<#LockpickRecord> Lockpick.records
-
A read-only list of all #LockpickRecords in the world database.
Type LockpickRecord
Field(s)
- #string LockpickRecord.icon
-
VFS path to the icon
- #string LockpickRecord.id
-
The record ID of the lockpick
- #number LockpickRecord.maxCondition
-
The maximum number of uses of this lockpick
- #string LockpickRecord.model
-
VFS path to the model
- #string LockpickRecord.mwscript
-
MWScript on this lockpick (can be empty)
- #string LockpickRecord.name
-
The name of the lockpick
- #number LockpickRecord.quality
-
The quality of the lockpick
- #number LockpickRecord.value
- #number LockpickRecord.weight