GetPCLastItemEquippedBy()
From NWN Lexicon
Jump to navigationJump to search
Returns the PC that last equipped an item
object GetPCItemLastEquippedBy();
Description
Use this to get the player character who last equipped an item in OnPlayerEquipItem.
Version
1.61
Known Bugs
On the first login after module start the object references returned by GetModuleItemAcquiredBy and GetPCItemLastEquippedBy are correct. On subsequent logins on the same module session, the object references returned by the aforementioned functions will be OBJECT_INVALID.
To work around this use GetItemPossessor on the item relevant to the event. This has been reported in detail here.
See Also
| functions: | GetPCItemLastUnequippedBy |
| events: | OnPlayerEquipItem Event |
author: Lilac Soul