Hello,
With the latest version (4.1.0), I think you can easily integrate this point.
You can create an event that contains a property (a state).
Example
import { RpgEvent, EventData } from '@rpgjs/server'
@EventData({
name: 'EV-1'
})
export default class MonsterEvent extends RpgEvent {
state = 'walk'
})
Then, if the monster detects a player, it can change state (pursuit
, for example).
You can see an example of how to create a vision and detection: https://playground.rpgjs.dev/move_to
Another event (monster to can also detect other monsters and see their status). If they're chasing you, you can decide to add them to the monster group.