To prevent consumption of food item while another food item, which was consumed previously, is still affecting player, namely increasing his health. Whole point should be to prevent food to be used as battlefield medical ...in other words to prevent situation when you eat 100 gecko steaks to heal yourself in the middle of fight.
I was playing with GECK and I was thinking that I might use some variable simply as a tag. Eating food would set tag (give it some value) while healing effect would be in effect then check this tag when player would try to eat another food item. There are 10 variables (Variable01-10) which can be accessed via GetActorVale. I was thinking to use one of them. Problem is I do not know how to set one when food is consumed. In principle it should be similar like drugs are working, increasing value for time of the effect.
Anybody can help?
Secondary question is, can health be increased over longer period? For example fictional food increase 1 point of health for 6 seconds. What if I want to increase it by 0.5 points for 6 seconds instead, or in other words 1 point per second? Seems values can be set only as integers. is there any way to overcome it?