GetLastPCRested()
Returns the last PC that rested.
object GetLastPCRested();
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.
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.
Version
1.22
See Also
functions: | GetLastRestEventType |
categories: | Core AI Functions | Miscellaneous Functions | PC Only Functions |
events: | OnPlayerRest Event |
author: Iskander Merriman, editor: Jasperre