SA-MP Forums Archive
Is there another way ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is there another way ? (/showthread.php?tid=515773)



Is there another way ? - Johnson_Brooks - 27.05.2014

Its a simple question : Is there anyway to add random vehicles without using an editor ? I mean is there an FS with random vehicles placed around SA or in SF ?
I tried searching but i didn't find anything.


Re: Is there another way ? - Vince - 27.05.2014

Unless you plan to spawn vehicles in the middle of the street, no. You'd need a fair amount of possible spawnplaces for it to be considered random.


Re: Is there another way ? - Johnson_Brooks - 27.05.2014

Quote:
Originally Posted by Vince
Посмотреть сообщение
Unless you plan to spawn vehicles in the middle of the street, no. You'd need a fair amount of possible spawnplaces for it to be considered random.
Not actually random like random spawns . Already placed somehwere in the streets .


Re: Is there another way ? - Mauzen - 27.05.2014

1. Create a purely random position.
2. Use Mapandreas to check if its plane and big enough for a vehicle
3. If not, start again at 1
4. If it is, spawn the vehicle

That could spawn vehicles randomly anywhere. On parking lots, on the street, on top of an house, or somewhere in the desert.
It would need no editor or anything, but vehicles might spawn at strange positions.


Re: Is there another way ? - Johnson_Brooks - 27.05.2014

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
1. Create a purely random position.
2. Use Mapandreas to check if its plane and big enough for a vehicle
3. If not, start again at 1
4. If it is, spawn the vehicle

That could spawn vehicles randomly anywhere. On parking lots, on the street, on top of an house, or somewhere in the desert.
It would need no editor or anything, but vehicles might spawn at strange positions.
I just want to know if there's a map of an fs with vehicles placed around SF.