So I've got this code (partial) :
Event OnInit() RegisterForSingleUpdateGameTime(MaintenanceREF.AIUpdateBandits)EndEventEvent OnUpdateGameTime() If (ImperialHQREF.NbOfPlacesPlayer + ImperialHQREF.NbOfPlacesImperial + ImperialHQREF.NbOfPlacesEETC) &--#62;= MaintenanceREF.NbOfPlacesToActivateBandits UtilPerc = RandomInt(1,34) debug.notification("*DEBUG* UtilPerc = " + UtilPerc) .....
I had this mod running for a few hours with no problem at all. The conditions have never been verified, so UtilPerc has never been set with its random value.
But if I uninstall my mod (with an uninstall button that Stop() all scripts) and install it again, then I have endless messages showing "UtilPerc = 21 ; UtilPerc = 12 ; UtilPerc 33 etc....". It goes crazy, does everything it shouldn't do ! (including activating functions that shouldn't be casted).
Bad, bad, naughty Papyrus, why do you do that to me ?
