How to Get Multiple Actors Near a Reference?

Post » Sun Sep 21, 2014 1:08 am

I need to find a way to reference multiple actors that are nearby an activator, because I want the activator to cast a certain spell at every actor that is within a certain radius of it.

I'm using this function right now:

http://www.creationkit.com/FindClosestActorFromRef_-_Game

But of course that will only return one actor at a time, I want to detect all of the actors, or atleast up to a certain number that are around my activator reference. I can't find any function that does this :(

I was thinking I could use a trigger box, but the problem is that I am using this in a spell that will place the activator near the player, and it seems that when I use placeatme for an activator, the script that is on the activator will not run.

User avatar
gandalf
 
Posts: 3400
Joined: Wed Feb 21, 2007 6:57 pm

Return to V - Skyrim