Difference between revisions of "FindAllReferencesWithKeyword - ObjectReference"
FindAllReferencesWithKeyword - ObjectReference (edit)
Revision as of 13:43, 11 May 2016
, 13:43, 11 May 2016→Examples
imported>Gawdl3y |
imported>Digitalparanoid |
||
Line 19: | Line 19: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Find all | ; Find all references with the ActorTypeAnimal keyword within 200 distance units of the player | ||
ObjectReference[] | ObjectReference[] kActorArray = Game.GetPlayer().FindAllReferencesWithKeyword(ActorTypeAnimal, 200.0) | ||
; Find all | ; Find all references that match ALL keywords in the actor type formlist within 200 distance units of the player | ||
ObjectReference[] | ObjectReference[] kActorArray = Game.GetPlayer().FindAllReferencesWithKeyword(ActorTypeFormlist, 200.0) | ||
; Find all references that match ANY keyword in the actor type formlist within 200 distance units of the player | |||
Int i = 0 | |||
While i < ActorTypeFormlist.GetSize() | |||
ObjectReference[] kActorArray = Game.GetPlayer().FindAllReferencesWithKeyword(ActorTypeFormlist.GetAt(i), 200.0) | |||
i += 1 | |||
EndWhile | |||
</source> | </source> | ||