I am trying to figure out how to create an infection mechanic. Basically I am the covid virus and I can jump on people’s heads and infect them, and when they are infected they then infect each other if they come in contact with one another.
I have a character covid object and man object.
The man object has a variable called infected=no; and two animations walk, and sick.
What I was hoping to do is that when I collide with the man object, his infected becomes yes, and then if he is infected his animation changes to the sick animation. Then if an infected man touches another non infected man, that man also changes his animation to sick.
I am able to do both of these separately but am unable to combine them for some reason. What am I doing wrong? Any help is appreciated. I know this shouldn’t be so complicated.