ConcededGore Posted January 9, 2018 Share Posted January 9, 2018 I am currently attempting to make garlands have a fuel value (which I was able to do easily), but I want the fuel value to degrade as the garland gets stale. To do this I need to constantly check the state of the garland, and this is where I ran into trouble. The best solution I've been able to think of was to hook into the "newstate" event on bees (or any other creature) and try to fire the update function, but that didn't work since that event isn't targeted at the flowerhat prefab. Then I tried to push a custom event to the flowerhat prefab, but I don't know how to target a specific prefab. Any help would be appreciated! Link to comment Share on other sites More sharing options...
ConcededGore Posted January 10, 2018 Author Share Posted January 10, 2018 I found a better solution to this problem by usingĀ inst:DoPeriodicTask(seconds, function). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
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.