FindAllReferencesWithKeyword - ObjectReference

Revision as of 14:42, 5 March 2013 by imported>Gawdl3y
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Finds all references with any required keywords in the loaded area within the given radius of the calling ref.

Syntax

ObjectReference[] Function FindAllReferencesWithKeyword(Form arKeywordOrList, float afRadius) native

Parameters

  • arKeywordOrList: Keyword to look for or form list of keywords which ref must have all of
  • afRadius: Maximum distance from ref to look for a reference

Return Value

An array of references with the required keywords within the radius, empty if none was found.

Examples

; Find all refs that match the keywords in the merchant listwithin 200 units of the activator
ObjectReference[] sellarray = ActiRef.FindAllReferencesOfType(MerchantKeywordList, 200.0)

; Find all refs with keyword Raider within 200 units of the activator
ObjectReference[] raiderrefarray = ActiRef.FindAllReferencesOfType(Raider, 200.0)

See Also