aseliot 2 Posted June 24, 2016 _playerPosition = position cfire findEmptyPosition[3,6]; player setpos _playerPosition; I try to place a player near a campfire with min distance 3 but sometimes it still spawns on the player somehow (I would expect it to at least spawn 3 meters away from him?) and I die because an animation is played and you to have to wait. How am I supposed to do this. Share this post Link to post Share on other sites
kylania 568 Posted June 24, 2016 Might just not be a lot of room maybe? Here's using your code in a random seemingly open location and there was almost no available spots. Using [3,6] I got no results at all. In this picture Red is [1,6], Orange is [2,6] and Blue is [3,10]: Share this post Link to post Share on other sites
R3vo 2654 Posted June 25, 2016 You could try https://community.bistudio.com/wiki/isFlatEmpty, maybe that works better. Share this post Link to post Share on other sites
aseliot 2 Posted June 25, 2016 I would assume the number is in meters? 10 seems to much as I noticed it can spawn in a strange location so I tried to do it as close as possible. EDIT - Well i give up, it just doesn't work as expected. Anyone have an idea of how to spawn a campfire, player (not on campfire) and a tent on a random location. Share this post Link to post Share on other sites
kylania 568 Posted June 25, 2016 You could always just spawn anywhere and clear away what was there first. Share this post Link to post Share on other sites
killzone_kid 1333 Posted June 25, 2016 This should do it: player setVehiclePosition [cfire, [], 6, "NONE"]; player setDir (player getDir cfire); Share this post Link to post Share on other sites