[DiscordArchive] And what is this for then?
[DiscordArchive] And what is this for then?
Archived author: Jinnai • Posted: 2024-11-25T19:45:36.507000+00:00
Original source
as long as shauren doesnt jump in and corrects me, i might be right
Archived author: Jinnai • Posted: 2024-11-25T19:45:40.790000+00:00
Original source
<:kek:868839618898960414>
Archived author: Vel • Posted: 2024-11-25T19:45:47.520000+00:00
Original source
Sooo
Archived author: Vel • Posted: 2024-11-25T19:46:16.295000+00:00
Original source
Hypothetically if I do this:
```c++
void Unit::AddToWorld()
{
if (IsInWorld())
return;
setActive(true);
WorldObject::AddToWorld();
i_motionMaster->AddToWorld();
}
```
It should make all NPCs active at all times? (Of course I'd use setActive for specific entries) but just hypotheticaly.
Archived author: Northstrider • Posted: 2024-11-25T19:46:38.683000+00:00
Original source
this will make all npcs active forever, causing the grids to stay loaded forever until all creatures in that cell despawn
Archived author: Northstrider • Posted: 2024-11-25T19:46:50.552000+00:00
Original source
in other words: this will slowly but steady tank your RAM
Archived author: stoneharry • Posted: 2024-11-25T19:46:57.631000+00:00
Original source
If you keep too many grids active, it's both your RAM and world update diffs gone
Archived author: stoneharry • Posted: 2024-11-25T19:47:09.312000+00:00
Original source
aka your performance will suck
Archived author: Vel • Posted: 2024-11-25T19:47:20.828000+00:00
Original source
Well, then how should I use this?
Archived author: stoneharry • Posted: 2024-11-25T19:47:27.252000+00:00
Original source
sparingly