GetLastPerceptionInaudible
From NWN Lexicon
Contents |
[edit] GetLastPerceptionInaudible()
Determines whether the last perceived object is no longer heard.
[edit] Description
Use this in an OnPerception script to determine whether the current perception event was triggered by a Heard state switching from TRUE to FALSE.
Returns TRUE if the last perceived object has exited the caller's hearing range, otherwise FALSE.
[edit] Remarks
May make a great guard script function that lets guards react to listen checks then scratch their heads in confusion when they no longer can hear the PC due to them Successfully Moving Silently.
[edit] Version
1.22
[edit] See Also
author: John Shuell