Difference between revisions of "FindAllReferencesWithKeyword - ObjectReference"

m
imported>Scrivener07
(Player is added to the array if the passed in keywords matches that of the keywords of the player.)
imported>Scrivener07
Line 33: Line 33:
</source>
</source>
== Notes ==
== Notes ==
* If wanting to grab all actors in the loaded area using the keywords, ActorTypeNPC or ActorTypeHuman, the player will also be added to the array as its race contains both of those keywords. If having the player be in the array is not intended, you need can remove it by checking for its formID of 20(decimal).
* If wanting to grab all actors in the loaded area using the keywords, ActorTypeNPC or ActorTypeHuman, the player will also be added to the array as its race contains both of those keywords. If having the player be in the array is not intended, you can remove it by checking for its formID of 20(decimal).
<source lang="papyrus">
<source lang="papyrus">
int index = actorArray.Length
int index = actorArray.Length
Anonymous user