RATDOG/_module/nss/69_hench_gorange.nss
Jaysyn904 0f13e6c538 Initial module commit
Initial module commit.
2021-08-29 23:34:48 -04:00

22 lines
543 B
Plaintext

//69_hench_gorange
// Henchman equips ranged weapon and
// will engage enemies in ranged combat
// Created by: 69MEH69 Oct2004
#include "69_INC_HENAI"
void main()
{
object oPC = GetPCSpeaker();
if(HasRangedWeapon69(OBJECT_SELF))
{
SetAssociateState(NW_ASC_USE_RANGED_WEAPON, TRUE);
SetCombatCondition(X0_COMBAT_FLAG_RANGED, TRUE);
SetLocalInt(OBJECT_SELF, "COMBAT_FLAG_SWITCH", FALSE);
ActionSpeakString("Very well.");
bkEquipRanged(oPC);
}
else
ActionSpeakString("I do not have a ranged weapon to equip.");
}