View Single Post
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 08-28-2019 , 10:20   Re: Getting random place on map
Reply With Quote #7

Quote:
Originally Posted by Brum Brum View Post
He means a random place on the map from which, for example, a props or weapon crate can be respawn. Not a random player spawn
Who said use it for players? You get the random vector with this command....

Quote:
Originally Posted by supertimor View Post
I want to use stock to get random, unstucked position on map without pushing any coordinates before.
Something like checking map x,y and randomizing position - check if stuck, if yes do it again.
Do you have any scripting experience? This is not a hard. Get a random location, check for brush entities too close, if they are too close then check again. This is almost the definition of what a loop accomplishes.

Check for your location, if its valid then continue, if not run loop again until you get your desired output.

Last edited by Halt; 08-28-2019 at 10:23.
Halt is offline