Maybe I'm stuck on this because I'm lacking sleep but either way I feel pretty dumb right now.
Working on a top down action game with some stealth mechanics.
I have an enemy called Enemy1
When it sees the player with the line of sight behaviour, it sets its own state to "Attacking" via an instance variable.
While it's in the "Attacking" state (and the player is still within it's line of sight) it will record the players position via two other instance variables called "PlayerPositionX" & "PlayerPositionY"
I would like Enemy1, when in range of other Enemy1 instances, to share the players position to these other instances.
The goal is that the other instances of Enemy1 will join in attacking the player, but only once they have been alerted to the players presence.
I'm having trouble making one instance of Enemy1 do something to another instance via the event sheet.
How do I do that?
Condition: Enemy1 - has Line of Sight to Enemy1
Action: Enemy1 - Set - PlayerPositionX to Enemy1.PlayerPositionX
Enemy1 - Set - PlayerPositionY to Enemy1.PlayerPositionY[/code:29fg396z]
Obviously doesn't work because it's just affecting itself.
Thanks in advance.