generated from Jaysyn/ModuleTemplate
49 lines
1.0 KiB
Plaintext
49 lines
1.0 KiB
Plaintext
//:://////////////////////////////////////////////////
|
|
//:: Heartbeat for herbivore/omnivore
|
|
//:: LOC_ANI_HTBT
|
|
//:://////////////////////////////////////////////////
|
|
/*
|
|
|
|
Heavily edited. Probably will only work for herb/omnivores.
|
|
Note that if creatures have standard BW Waypoints,
|
|
special herb/omnivore AI is disabled.
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////////
|
|
//:: Copyright (c) 2002 Floodgate Entertainment
|
|
//:: Created By: Naomi Novik
|
|
//:: Created On: 12/22/2002
|
|
//:://////////////////////////////////////////////////
|
|
|
|
#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 on creature's OnHeartbeat. Fires when not fighting or talking.
|
|
|
|
|
|
|
|
|
|
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN);
|
|
|
|
if (IsInConversation(OBJECT_SELF) || GetIsInCombat()) return;
|
|
|
|
ActionForceFollowObject(oPC);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|