Indicating a player is doing action.
Posted: Thu Sep 17, 2015 10:53 pm
Is there a value in scripting that would indicate a player is starting the action? Or a value that is specific to player character that I can use in a script? I mean this in terms of differentiating player characters versus non-player characters. I'm currently using
EDIT: put in working code and kjLotus' help
Code: Select all
function onSpellCast(caster,target,spell)
if caster:isPC() then
local dmg = doElementalNuke(25*SPELL_POWER,1,caster,spell,target,false,1.0);
return dmg;
else
local dmg = doElementalNuke(25,1,caster,spell,target,false,1.0);
return dmg;
end
end;
EDIT: put in working code and kjLotus' help