Area Effects Persist After Unit is Deleted If You Reload a Save

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Area Effects Persist After Unit is Deleted If You Reload a Save

Post by PaulStretch »

While working on my mod, I've figured out that area effects will persist after a unit is deleted. If you delete a unit, immediately save, then reload the save, the area effects that unit had will persist for about 20 seconds after the unit is gone. For example, when I changed the spawn rate for the robotics factory from 60 sec to 1 sec, it will stop spawning units after I delete it, if stay in game. However, if I delete it, then immediately save, then reloaded the save, units will keep spawning from where the robotics factory was for about 20 seconds. This delay also happens with other area effects too, like the maxhp modifier. I'm curious if anyone else has noticed this, and if there is a way to fix it.

Post Reply

Return to “Questions”