GetLastPCRested
From NWN Lexicon
Contents |
[edit] GetLastPCRested()
Returns the last PC that rested.
[edit] Description
Get the last PC that has rested in the module. This function is useful only in a module's OnPlayerRest event script, and can be used when providing custom rest behavior.
[edit] Remarks
It should never be used elsewhere, other then a OnPlayerRest script. It can be an invalid object - if the PC has exited the game, and the rest has been cancled.
NPC's do not trigger the event at all, but DM's can.
[edit] Version
1.22
[edit] See Also
functions: | |
events: |
author: Iskander Merriman, editor: Jasperre