20.10.2012, 20:32
So I got like over 1000 lines of RemoveBuildingForPlayer code in my script and the script just freezes when a player connects. Any way to fix it except for reducing the removed objects?
You are using RemoveBuildForPlayer in OnPlayerConnect i suppose.. then why it wouldn't lag player? It's a 1000 of building to remove.. that's a pretty nice value to remove. That's the same like you have (maybe not you) a lot of anim libraries to refresh.. it will lag player for a few seconds.
But i only guess you have it in OnPlayerConnect. |
Depending on what kind of stuff you're trying to delete, you should expand the range for one model of building and remove all other references to that model. Do not use the map editor because it uses 0.25 range.
|