PRC8/nwn/trunk/smp/smp_ail_charm.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

34 lines
911 B
Plaintext

/*:://////////////////////////////////////////////
//:: Name Spell's Charm Heartbeat Script
//:: FileName SMP_ail_charm
//:://////////////////////////////////////////////
This is run on heartbeat.
It runs on PCs or NPCs. It uses the AI to target any enemies and
attack them. Uses the default AI for now (SoU Version if possible).
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//:: Created On: October
//::////////////////////////////////////////////*/
#include "NW_I0_GENERIC"
#include "SMP_INC_AILMENT"
void main()
{
// We can edit actions to...
SetCommandable(TRUE);
// Stop
ClearAllActions();
// Attack
DetermineCombatRound();
if(!GetIsInCombat(OBJECT_SELF))
{
// Follow after any actions.
ActionForceFollowObject(GetMaster(), 5.0);
}
// Return to state of can't edit actions
SetCommandable(FALSE);
}