Can I perform arithmetic in doTargetCombatHealth?
E.G.
local damage = (getCreatureMaxHealth(cid) * 0.1)
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -" .. damage .. ", -" .. damage .. ", CONST_ME_NONE)
The above does not work, is there anything that will?
E.G.
local damage = (getCreatureMaxHealth(cid) * 0.1)
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -" .. damage .. ", -" .. damage .. ", CONST_ME_NONE)
The above does not work, is there anything that will?