From 5a7678361678756586ef305f575cacacf3e2627f Mon Sep 17 00:00:00 2001 From: Nova Date: Wed, 12 Nov 2025 22:29:16 -0500 Subject: [PATCH] Added documentation. --- files/lua_api/openmw/types.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua index 09cb7b24fa..b5c57f289e 100644 --- a/files/lua_api/openmw/types.lua +++ b/files/lua_api/openmw/types.lua @@ -1088,6 +1088,17 @@ -- @param openmw.core#GameObject actor -- @return #boolean +--- +-- Turn an NPC or player into werewolf form or back to normal form. +-- Can only be used in global scripts or on self in local scripts. +-- @function [parent=#NPC] setWerewolf +-- @param openmw.core#GameObject actor The NPC or player to transform +-- @param #boolean werewolf True to transform into werewolf, false to transform back to normal +-- @usage -- Transform player into werewolf in a global script +-- types.NPC.setWerewolf(player, true) +-- @usage -- Transform self back to normal in a local script +-- types.NPC.setWerewolf(self, false) + --- -- Returns the read-only @{#NpcRecord} of an NPC -- @function [parent=#NPC] record