Difference between revisions of "FindAllReferencesWithKeyword - ObjectReference"
FindAllReferencesWithKeyword - ObjectReference (edit)
Revision as of 14:49, 3 February 2021
, 14:49, 3 February 2021→Notes
imported>Scrivener07 (Player is added to the array if the passed in keywords matches that of the keywords of the player.) |
imported>Scrivener07 m (→Notes) |
||
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 | * 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 |