33 lines
856 B
Plaintext
33 lines
856 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Name x2_def_heartbeat
|
||
|
//:: Copyright (c) 2001 Bioware Corp.
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Default Heartbeat script
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Keith Warner
|
||
|
//:: Created On: June 11/03
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
//:: Declare major variables
|
||
|
|
||
|
object oNPC = OBJECT_SELF;
|
||
|
string sResRef = GetResRef(oNPC);
|
||
|
|
||
|
//:: Runs Bloodfly swarm HB
|
||
|
if (sResRef == "ra_bldflyswrm01" )
|
||
|
{
|
||
|
ExecuteScript("cr_bloodfly_hb", oNPC);
|
||
|
}
|
||
|
|
||
|
if ((!GetIsInCombat(oNPC) && (GetItemInSlot(INVENTORY_SLOT_CHEST) == OBJECT_INVALID)))
|
||
|
DelayCommand(0.5f, ActionEquipMostEffectiveArmor());
|
||
|
|
||
|
//:: Execute the default NPC OnHeartbeat script
|
||
|
ExecuteScript("nw_c2_default1", oNPC);
|
||
|
|
||
|
}
|