Aha^^ I thought I should write my own type there^^
However I got 5 errors on the same line...
"Cannot convert boolean to real"
"Cannot convert attacktype to boolean"
"Cannot convert damagetype to attacktype"
"Cannot convert weapontype to damagetype"
"Not enough arguments passed to function"
=/
Edit: Ok found the problem, forgot about a real value.
But no damage is caused atm =/
All these three messages are shown too so the trigger isn't stucked... Either he doesn't know what to damage or he just doesn't call it..
Edit: K the function isn't called (checked with a debug message=/ )
Irritating... it should work, shoudn't it?
However I got 5 errors on the same line...
"Cannot convert boolean to real"
"Cannot convert attacktype to boolean"
"Cannot convert damagetype to attacktype"
"Cannot convert weapontype to damagetype"
"Not enough arguments passed to function"
JASS:
call UnitDamageTarget(caster, GetEnumUnit(), true, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_UNIVERSAL, WEAPON_TYPE_WHOKNOWS)
=/
Edit: Ok found the problem, forgot about a real value.
JASS:
function Trig_Lightnings_Func001A takes nothing returns nothing
call UnitDamageTarget(caster, GetEnumUnit(), 200,true, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_UNIVERSAL, WEAPON_TYPE_WHOKNOWS)
endfunction
But no damage is caused atm =/
All these three messages are shown too so the trigger isn't stucked... Either he doesn't know what to damage or he just doesn't call it..
JASS:
call BJDebugMsg("1")
set udg_z = GetUnitsInRangeOfLocMatching(500, GetUnitLoc(GetTriggerUnit()), Condition(function Trig_Lightnings_FilterCondition))
call BJDebugMsg("2")
call ForGroup( udg_z, function Trig_Lightnings_Func001A )
call BJDebugMsg("3")
Edit: K the function isn't called (checked with a debug message=/ )
Irritating... it should work, shoudn't it?