Get actors within range of another actor

Post » Mon Apr 08, 2013 6:19 pm

I want to determine which actors are within in a certain range (and/or have LOS) of another actor.

Actor.HasLOS() and ObjectReference.GetDistance() would probably do the job, but i would have to loop over all actors in the specific cell...

Could i maybe use a custom spell effect for this? Like creating an AoE spell that i cast on ActorX, and then figure out which actors where affected by that spell? That was just an idea i had today, no clue how to do that or if it is even possible :(

Anyone have done this or something similar and can give me some advice please?

Thanks

boma
User avatar
Kayleigh Williams
 
Posts: 3397
Joined: Wed Aug 23, 2006 10:41 am

Return to V - Skyrim