Spawning NPCs near a player

Hello, how would I go about spawning 3 NPCs near a player (like deepwoken bandits)? Ignoring the obvious answer, there is a chance that the npcs could spawn in walls if I simply just set their position based on the players position. How would I go about spawning them near the player where there are no items obstructing them?

I would go with checking the boundingBox of the NPC model before to place it, if its obstructed then retry a new position based on the player’s position

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.