Random weapon drops as objects - 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: Random weapon drops as objects (
/showthread.php?tid=656857)
Random weapon drops as objects -
NoteND - 25.07.2018
Hey!
Im currently working on Battle Royale server, and Im just wondering if there's any way to make more than limit (1000) dropped weapon objects on floor all around the world.. cuz 1000 is just not enough because they're super hard to find.
Would appreciate any help.. using MapAndreas plugin btw
Re: Random weapon drops as objects -
augustogdo - 25.07.2018
You can use the
CreateDynamicPickup function of the
Streamer plugin. Thus, pickups will only be created if the player is in a certain range.
@EDIT
If you want to create objects, you can also use
CreateDynamicObject from the
Streamer plugin.
Re: Random weapon drops as objects -
NoteND - 25.07.2018
And you can do unlimited of those ? Obviously not too many cuz of potential server crash, but u get my point.. and what would be best way to spawn those objects (weapons) u think ?
Re: Random weapon drops as objects -
denNorske - 25.07.2018
You could use objects as Augustogdo told you above. Check out
here for releases. Dynamic objects have no limited amount but you shouldn't create 10k objects in one spot either.
Then use some kind of logic to pick them up scriptwise