Комментарии:
I really have no idea how all you guys benefit from all this but thank you. You all make the dream a reality.
ОтветитьBefore I destroy the food item after consumption, I spawn an particle emitter because I like to have visual feedback. But if you don't destroy the item right after applying the damage, you realize that Apply Damage is called multiple times and not just once. Any suggestions?
ОтветитьWouldn't it be significantly more efficient to simply have a service which identifies the most urgent desire by ordering an array of all the stats by a property of the Stat called StatUrgency (which is just the multiple of it's satisfaction and it's desirability) and then selecting the 0th index. Then pass the ID of that stat into a EnvQ to search all actors with the ability to give that stat then simply go to the nearest one?
Ответить