void OnBecameVisible() { theEntity.SetFlush(true); EventDispatcher.TriggerEvent <int>(Events.TaskEvent.NPCInSight, (int)theEntity.ID); }