OnCreateObj(function(Object) if IsInDistance(600, GetOrigin(Object)) then PrintChat(string.format("<font color='#00ff00'>CreatedObject = %s</font>",GetObjectBaseName(Object))); CastTargetSpell(Object, _E) end end)
I use kata with this script, I want cast E when I put a ward.
This code print my ward to chat well, but not cast E at all.
Edited by ilovesona, 25 August 2015 - 06:01 .