1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 13:04:31 +00:00

Added documentation.

This commit is contained in:
Nova 2025-11-12 22:29:16 -05:00 committed by Alexei Kotov
parent dcbda0cbaa
commit 5a76783616

View file

@ -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