Choose random position on ground?

Is there anyway to choose a random position anywhere in the map to spawn a random swep on the ground?

The function I’m looking for is the one that chooses a random position.

You could pre-define a set of points, or use a totaly random Vector. That ofcourse would result in weapons probably stuck in buildings etc if the map is not flat.

Anyway to make a weapon go up until is not stuck?

Up, down, left right etc yes it is possible but it would be too much of a hassle to get it working properly. What exactly will it be good for, maybe there is another option to do what you need.

I’ve got some small pseudo-code in my head, thank you!
One off-topic question, how do I rate posts? Can’t find the button :stuck_out_tongue:
You may rate me Dumb :wink:

:slight_smile: you need to have at least 50 posts to rate

Oh, thanks!