• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

How do you know if player has been targeted?

mackerel

Well-Known Member
Joined
Apr 26, 2017
Messages
398
Solutions
18
Reaction score
74
Hi, is there any function you can use to tell whether the player is selected as a target?

LUA:
if enemy:isTarget(Player(cid)) then
    enemy:removeTarget(Player(cid))
end

in this case enemy has to have their own ID, but I need to check if player has been targeted by anyone (other players & monsters), not just one particular creature

tfs 1.0
 
Back
Top