• 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!

TARGETING HELP! getCreatureHealth(cid)!

xouzko

New Member
Joined
Oct 16, 2012
Messages
2
Reaction score
0
I have a spell that only hits the monster if it has 15% health or lower, but the only problem is it is targeting the player with the getcreaturehealth and getcreaturemaxhealth instead of the creature itself. How am i supposed to target the creature in the script?
 
This is a very simple combination of OT functions.
local target = getCreatureTarget(cid)
local health = getCreatureHealth(target)
local finish = (health / 100 * 15)
 
Back
Top