Initial commit. Updated release archive.
This commit is contained in:
27
_module/nss/opa_crusaders.nss
Normal file
27
_module/nss/opa_crusaders.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Default On Attacked
|
||||
//::
|
||||
//:: NW_E0_Default5.nss
|
||||
//::
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
//:: If I am attacked, I attack my attacker.
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Brent, On: April 24, 2001
|
||||
//:: Modified By Aidan on Oct 2001
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oTarget = GetAttackTarget();
|
||||
object oAttacker = GetLastAttacker(OBJECT_SELF);
|
||||
// SpeakString("NW_I_WAS_ATTACKED",TALKVOLUME_SILENT_SHOUT);
|
||||
if (GetIsObjectValid(oAttacker) &&
|
||||
!GetIsObjectValid(oTarget) &&
|
||||
GetIsEnemy(oAttacker) )
|
||||
{
|
||||
ClearAllActions();
|
||||
ActionAttack(oAttacker);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user