SAC Posted April 10, 2019 Posted April 10, 2019 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
dagobaking Posted April 10, 2019 Posted April 10, 2019 I'm not sure if there is a "Closest" version of that one. Depending on what you need, you might be able to use this one: https://www.creationkit.com/fallout4/index.php?title=FindClosestReferenceOfAnyTypeInListFromRef_-_Game
SAC Posted April 10, 2019 Author Posted April 10, 2019 4 hours ago, dagobaking said: I'm not sure if there is a "Closest" version of that one. Depending on what you need, you might be able to use this one: https://www.creationkit.com/fallout4/index.php?title=FindClosestReferenceOfAnyTypeInListFromRef_-_Game Yep, I think that should work too, I’ll give it a try. Thank you @dagobaking
Recommended Posts
Archived
This topic is now archived and is closed to further replies.