37 lines
994 B
Plaintext
37 lines
994 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Henchmen: On Disturbed
|
|
//:: NW_C2_AC8
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Determine Combat Round on disturbed.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Preston Watamaniuk
|
|
//:: Created On: Oct 16, 2001
|
|
//::///////////////////////////////////////////
|
|
|
|
// * Make me hostile the faction of my last attacker (TEMP)
|
|
// AdjustReputation(OBJECT_SELF,GetFaction(GetLastAttacker()),-100);
|
|
// * Determined Combat Round
|
|
|
|
#include "hench_i0_ai"
|
|
|
|
|
|
void main()
|
|
{
|
|
object oTarget = GetLastDisturbed();
|
|
|
|
if(!GetIsObjectValid(GetAttemptedAttackTarget()) && !GetIsObjectValid(GetAttemptedSpellTarget()))
|
|
{
|
|
if(GetIsObjectValid(oTarget))
|
|
{
|
|
HenchDetermineCombatRound(oTarget);
|
|
}
|
|
}
|
|
if(GetSpawnInCondition(NW_FLAG_DISTURBED_EVENT))
|
|
{
|
|
SignalEvent(OBJECT_SELF, EventUserDefined(EVENT_DISTURBED));
|
|
}
|
|
}
|