Posts: 1,494
Threads: 120
Joined: Dec 2009
Reputation:
0
Anyway to detect some coordinates inside of a certain area? Any code function or anything will help other than going into the area and /save'ing
Posts: 1,494
Threads: 120
Joined: Dec 2009
Reputation:
0
Not that i mean like Get random positions in a area that is already created without some program or /save
Posts: 1,494
Threads: 120
Joined: Dec 2009
Reputation:
0
Uh maybe, i mean like you can just type some command like /boom then it will just detect some random place in certain area and make explosions
Posts: 1,494
Threads: 120
Joined: Dec 2009
Reputation:
0
isn't that like some streamer function?
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
Nope.
I'd say, use the "random()" function with GetPlayerPos to create explosions in an area near him, and use the MapAndreas plugin to get the ground positions.
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
You can calc the random points: randomx = zone_min_x + random(floatround(zone_max_x - zone_min_x));
The same for y then
But you may land in a house or so then. For good results, use MapAndreas, and set the z for the random x/y, too.