zetake Posted June 21, 2021 Share Posted June 21, 2021 How do you currently chain original function? Because this: AddComponentPostInit("resurrectable", function(self, inst) local _CanResurrect = self.CanResurrect self.CanResurrect = function(self, cause) _CanResurrect(self, cause) end local _FindClosestResurrector = self.FindClosestResurrector self.FindClosestResurrector = function(self, cause) _FindClosestResurrector(self, cause) end local _DoResurrect = self.DoResurrect self.DoResurrect = function(self, res, cause) _DoResurrect(self, res, cause) end end) Doesn't work for me. I've tried AddComponentPostInit and AddClassPostConstruct. And modifications do works, but they doesn't chain original functions. So my mod is worthless in this case. Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.