Jump to content

Get all actors near the player - Is it possible?


Donutfiend84

Recommended Posts

So I have a player script, that needs to get a reference to all actors near the player. (Within a certain radius) I had planned to use one of the findClosestActor functions, but unfortunately, with the player at their center, they will always return the player. (I don't understand why the search wouldn't omit the reference object FROM said search... but oh well)

 

In addition, even if they did work, they would only detect the closest actor to the player. I need to get a list of all actors, within a radius around the player. (ideally, sorted by distance from the player, but this is not mandatory)

 

Seems like this shouldn't be as hard as I think it is, but for one reason or another, I can't seem to figure it out. Anyone have any ideas?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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