25 lines
672 B
Plaintext
25 lines
672 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Name cut108_ondamage
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Default OnDamaged script
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Keith Warner
|
|
//:: Created On: June 11/03
|
|
//:://////////////////////////////////////////////
|
|
|
|
void main()
|
|
{
|
|
if (GetLocalInt(OBJECT_SELF, "nRetreat") == 1)
|
|
{
|
|
ClearAllActions(TRUE);
|
|
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
|
|
ActionMoveAwayFromObject(oPC, TRUE);
|
|
return;
|
|
}
|
|
|
|
ExecuteScript("nw_c2_default6", OBJECT_SELF);
|
|
}
|