ausirosiris
New Member
- Joined
- May 23, 2020
- Messages
- 57
- Reaction score
- 2
Lua:
addCheckBox("highlightTarget", "Highlight Current Target", true, rightPanel, "Additionaly hightlight current target with red glow")
if true then
local function forceMarked(creature)
if target() == creature then
creature:setMarked("red")
return schedule(333, function() forceMarked(creature) end)
end
end
onAttackingCreatureChange(function(newCreature, oldCreature)
if not settings.highlightTarget then return end
if oldCreature then
oldCreature:setMarked('')
end
if newCreature then
forceMarked(newCreature)
end
end)
end
I found this feature inside the game_bot module. But it needs to be used while botting (i don't want it). Is there a way to code this into a separated MOD
that triggers that highlight effect on targets all the time without the need to be used inside the otc's bot?