Jump to content

Find closest reference with keyword


Recommended Posts

Posted

I am looking for a function which would return the closest reference that has a specific keyword

 

I have found this:

 

ObjectReference[] kActorArray = Game.GetPlayer().FindAllReferencesWithKeyword(ActorTypeAnimal, 200.0)

 

but it returns an array, and, since I'm lazy trying to be efficient, I am hoping that there is one which returns just the closest ref, instead of having to manipulate that array just to find the closest one

 

thank you :)

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...