mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 12:25:17 -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**
|
**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
|
.. code-block:: Lua
|
||||||
|
|
||||||
@ -161,3 +161,19 @@ Modify a specified amount of enchantment charge of an item
|
|||||||
|
|
||||||
-- Reduce charge by 10
|
-- Reduce charge by 10
|
||||||
core.sendGlobalEvent('ModifyItemCharge', {item = foobar, amount = -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