[ad_1]
I’ve seemed however havn’t been capable of finding a the workflow for this looking on-line.
I’ve an NPC, with a habits tree. Right now it simply strikes across the map. It’s speculated to have a well being variable, which triggers one thing to occur when its well being is at 0. ‘Health’ is decreased when the participant shoots a ray solid at it.
I’m unable to search out the place/the way to place this.
I’ve tried storing the ‘well being’ within the Character, the Controller, and in a Blackboard.
Storing it within the Blackboard permits the habits tree ‘Tasks’ to switch it, however then it could’t be triggered to alter by an ‘On Any Damage’ within the NPC Character/Controller. I can put it within the Character, however then the tree or its duties can not seem to entry it.
Sorry if that is imprecise, I’m misplaced. This feels prefer it needs to be easy.
TLDR, all I want is a variable saved within the NPC Character which the behaviour tree or its duties can react to. Simple, no? Can’t determine how personally.
[ad_2]