mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 07:16:31 -04:00
Doc updates
This commit is contained in:
parent
c7e3f9b0cf
commit
1b9802472d
@ -147,7 +147,7 @@ Calls the corresponding function in openw.core. Note that PlaySound3d will call
|
||||
|
||||
**ConsumeItem**
|
||||
|
||||
Reduces stack size of an item by a given amount, removing the item complete if removing all items in the stack are removed.
|
||||
Reduces stack size of an item by a given amount, removing the item completely if stack size is reduced to 0 or less.
|
||||
|
||||
.. code-block:: Lua
|
||||
|
||||
@ -161,3 +161,19 @@ Modify a specified amount of enchantment charge of an item
|
||||
|
||||
-- Reduce charge by 10
|
||||
core.sendGlobalEvent('ModifyItemCharge', {item = foobar, amount = -10})
|
||||
|
||||
**Lock**
|
||||
|
||||
Lock a container or door
|
||||
|
||||
.. code-block:: Lua
|
||||
|
||||
core.sendGlobalEvent('Lock', {taret = selected, magnitude = 50})
|
||||
|
||||
**Unlock**
|
||||
|
||||
Unlock a container or door
|
||||
|
||||
.. code-block:: Lua
|
||||
|
||||
core.sendGlobalEvent('Unlock', {taret = selected})
|
||||
|
Loading…
x
Reference in New Issue
Block a user