GetModuleItemAcquired
From NWN Lexicon
Contents |
[edit] GetModuleItemAcquired()
Get the item acquired on an OnAcquiredItem event.
[edit] Description
Returns the object that was just picked up or acquired in an OnAcquiredItem event. On error the function will return an OBJECT_INVALID; this should never happen but is possible if you trigger the event manually.
[edit] Version
1.22
[edit] Example
// This will find the name of the item acquired in an OnAcquiredItem event. void main() { object a = GetModuleItemAcquired(); if(a == OBJECT_INVALID) SendMessageToPC(GetFirstPC(),"OOPS A CRASH ME THINKS"); else SendMessageToPC(GetFirstPC(),GetTag(a)); }
[edit] See Also
functions: | |
events: |
author: GoLeM, editor: Kristian Markon