Difference between revisions of "Common Mistakes"
Jump to navigation
Jump to search
→Avoid Using PlaceAtMe
imported>Dev akm (→Avoid Using PlaceAtMe: actor references) |
imported>Dev akm |
||
Line 68: | Line 68: | ||
The bloating caused by PlaceAtMe is not as severe as some of the other problems, but a single mod using it repeatedly can still add several megabytes to a savegame over time. If you have several mods that all do this, it starts to add up rather quickly. | The bloating caused by PlaceAtMe is not as severe as some of the other problems, but a single mod using it repeatedly can still add several megabytes to a savegame over time. If you have several mods that all do this, it starts to add up rather quickly. | ||
Note that using PlaceAtMe as a way to spawn extra enemies is fairly safe because the reference does get cleaned up once the actor is dead and the respawn time has elapsed. The only risk in this case is if a large number of actors are spawned with PlaceAtMe and never get killed. | Note that using PlaceAtMe as a way to spawn extra enemies is fairly safe because the reference does get cleaned up once the actor is dead and the respawn time has elapsed. The only risk in this case is if a large number of actors are spawned with PlaceAtMe and never get killed, in which case the references do not get cleaned up. | ||
=== Avoid Using DuplicateAllItems on a Companion === | === Avoid Using DuplicateAllItems on a Companion === |