Listen for S3TargetLockOnto when your mod needs to react to target changes without polling.
---@omw-context player
return {
eventHandlers = {
S3TargetLockOnto = function(target)
if target and target:isValid() then
print(('Locked onto %s'):format(target.recordId))
else
print('Target lock cleared')
end
end,
},
}
Need the current target rather than a notification? Ask the Manager.