PRC8/nwn/trunk/racescripts/race_kil_ft_hunt.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

23 lines
661 B
Plaintext

/* Killoren Hunter, detect enemies in area*/
#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
if(!GetLocalInt(oPC, "KillorenHunter")) return;
location lTarget = GetLocation(oPC);
//Get the first target in the radius around the caster
object oTarget = MyFirstObjectInShape(SHAPE_SPHERE, FeetToMeters(30.0), lTarget);
while(GetIsObjectValid(oTarget))
{
FloatingTextStringOnCreature("A "+GetName(oTarget)+" approaches", oPC, FALSE);
//Get the next target in the specified area around the caster
oTarget = MyNextObjectInShape(SHAPE_SPHERE, FeetToMeters(30.0), lTarget);
}
}