Hi, sorry if this is a noob question.
I am trying to make a stealth game in scirra and sort of got stuck at implementing a feature where an enemy discovers another enemy that is dead.
My enemy object uses line of sight behavior to see things.
Their movement behaviour is determined by an instance variable which they all share -alertMode.
Alert mode=0 - enemy is inactive
=1 - enemy is patrooling
=2 - enemy is alret and attacking
=3 - investigating/ alert- looking for player
=4 - enemy is dead (you need to hide the body)
So we have two instances of the same object - enemy.
One has alert mode=1 (patrooling), the other is dead (alert mode 4)
How do I tell the patrooling enemy to change their alert mode to 3, when they have line of sight to a dead enemy (4).