Create list with all actors in cell

Post » Thu Jun 21, 2012 3:20 am

Is there an elegant way to get the IDs from all hostile actors in a cell, so I can put them in arrays/lists?
I want to check if hostile actors have line of sight to corpses but LOS functions require IDs.
Then I wanted to use the ondeath() event, with isdead == 1 loop to check who in this list died.

My best idea so far is to use FindRandomActorFromRef and do 100 or 1000 loops and take all non-duplicates into a list.
User avatar
James Rhead
 
Posts: 3474
Joined: Sat Jul 14, 2007 7:32 am

Return to V - Skyrim