Jump to content

Find closest reference with keyword


Recommended Posts

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 :)

 

Link to comment

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use