19.01.2019, 08:47
(
Last edited by jonrb; 19/01/2019 at 09:17 AM.
Reason: Added image and code snippet
)
Hi folks!
I've been fiddling around with the actors a bit lately, and there seems to be some sort of undocumented actor limit of around 50 in any particular area. I've found a couple of posts suggesting the same thing (here and here), but there's no mention of this on the wiki under either CreateActor or Limits. In my test server, I've created a 31 x 31 grid of actors (961 total), which is within the limit of 1000, however there only seem to be about 50 of them showing at any one time.
I have uploaded an image that I've annotated with numbers here: https://i.imgur.com/qvX9bFJ.png
The scene in the above image was generated with the following code:
I've made sure they're not falling through the map using a timer as some people have suggested, and I've tried both with and without the Streamer plugin in case that was imposing its own limit.
I've been a bit out of the SA-MP loop, so I apologise if this is a known issue, but if that's the case I'd appreciate the wiki being updated with the latest information!
I've been fiddling around with the actors a bit lately, and there seems to be some sort of undocumented actor limit of around 50 in any particular area. I've found a couple of posts suggesting the same thing (here and here), but there's no mention of this on the wiki under either CreateActor or Limits. In my test server, I've created a 31 x 31 grid of actors (961 total), which is within the limit of 1000, however there only seem to be about 50 of them showing at any one time.
I have uploaded an image that I've annotated with numbers here: https://i.imgur.com/qvX9bFJ.png
The scene in the above image was generated with the following code:
Code:
for(new Float:x= 1400.0; x < 1432.0; x += 1.0) for(new Float:y= 1400.0; y < 1432.0; y += 1.0) CreateDynamicActor(286, x, y, 15.0, 0.0);
I've been a bit out of the SA-MP loop, so I apologise if this is a known issue, but if that's the case I'd appreciate the wiki being updated with the latest information!