Deleted56031792User Posted January 17, 2023 Share Posted January 17, 2023 Does anyone know what script controls ore node respawns or where it is located so I can take a look at it?Barring that, could anyone provide an example of how to set a global timer on all ore nodes for respawn? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 17, 2023 Share Posted January 17, 2023 The MineOreScript has includes the following: event onReset() ; debug.Trace(self + ": is running onReset") ;THIS WASN'T WORKING RIGHT self.Reset() self.clearDestruction() self.setDestroyed(False) ; if getLinkedRef() resourceCountCurrent = -1 ; else ; depleteOreDueToFailure() ; endif ;USKP 1.3.0 FixStart - if ore is enabled then disable and enable to avoid becoming un-mineable upon respawn. if self.isEnabled() self.disable() self.enable() endif ;USKP 1.3.0 FixEnd endEvent I would surmise then that this event runs whenever the object has been reset (typically when the cell containing the object has been reset). That said, the MineOreFurnitureScript also contains some stuff regarding depletion and resetting. But I think those might be more related to allowing and disallowing the player animation at the ore vein itself. As far as a global timer, I know that if one changes the number of game days / hours to wait for a cell reset and a cell respawn that the ore veins will also update accordingly. But that may be overkill for your needs. I have not seen a timer put in place for just the ore veins. Link to comment Share on other sites More sharing options...
Recommended Posts