I'd consider: ```js // Allow a system / module to override if something was spotted if (Hooks.call("

I'd consider:
// Allow a system / module to override if something was spotted
if (Hooks.call("prePatrolSpotted", spotter, spotted)) {
// Inform any who want to do something with the spotted info
Hooks.callAll("patrolSpotted", spotter, spotted);
}
// Allow a system / module to override if something was spotted
if (Hooks.call("prePatrolSpotted", spotter, spotted)) {
// Inform any who want to do something with the spotted info
Hooks.callAll("patrolSpotted", spotter, spotted);
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?