SearchForPlayer
From NWN Lexicon
Contents |
[edit] SearchForPlayer()
Makes a guard search for and attack the nearest PC.
[edit] Description
The nearest seen PC is obtained with a GetNearestCreature command. If no PC is found, the guard will scratch his head, and thereâs a 30% chance he will speak a oneliner conversation. If a PC is found, the guard will attack that PC.
[edit] Remarks
Found in nw_c2_recruit1.nss line 16
Note that nw_c2_recruit1 isnât an include file. It has a void main() function, which means that you cannot include that file the normal way. The best way to use the SearchForPlayer function is probably to copy it into your script.
[edit] Version
1.28
[edit] See Also
author: Lilac Soul