generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
36
_module/nss/loc_perceptfollo.nss
Normal file
36
_module/nss/loc_perceptfollo.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
//:://////////////////////////////////////////////////
|
||||
//:: OnPerception for herbivore/omnivore
|
||||
//:: LOC_PERCEPT
|
||||
//:://////////////////////////////////////////////////
|
||||
/*
|
||||
Default OnPerception event handler for NPCs.
|
||||
|
||||
Handles behavior when perceiving a creature for the
|
||||
first time.
|
||||
*/
|
||||
//:://////////////////////////////////////////////////
|
||||
|
||||
#include "loc_i0_generic"
|
||||
|
||||
void main()
|
||||
{
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 1.6
|
||||
|
||||
For download info, please visit:
|
||||
http://www.lilacsoul.revility.com */
|
||||
|
||||
//Goes OnPerceived of a creature
|
||||
|
||||
|
||||
object oPC = GetLastPerceived();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (!GetLastPerceptionSeen()) return;
|
||||
ActionForceFollowObject(oPC);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user