Heloes Hive Workshop
I've encountered a slight problem with this line in my function:
the editor says that it's 'Invalid argument (integer)'. I searched some web, nothing seems to be the problem. What's more, when I made same thing in GUI and converted it afterwards, there was no problem in converted trigger. After copying it to my own JASS trigger, despite looking the same, the same error would occur, as it prevously did. To make it anyhow more clear I'll post the rest of the trigger's part.
Any ideas, maybe?
I've encountered a slight problem with this line in my function:
JASS:
call UnitAddAbilityBJ ('A016', GetLastCreatedUnit())
the editor says that it's 'Invalid argument (integer)'. I searched some web, nothing seems to be the problem. What's more, when I made same thing in GUI and converted it afterwards, there was no problem in converted trigger. After copying it to my own JASS trigger, despite looking the same, the same error would occur, as it prevously did. To make it anyhow more clear I'll post the rest of the trigger's part.
JASS:
call CreateNUnitsAtLoc(1, 'H002', GetPlayerId(GetOwningPlayer(caster)), GetUnitLoc(caster), bj_UNIT_FACING)
call UnitAddAbilityBJ ('A016', GetLastCreatedUnit())
call IssueTargetOrderBJ (GetLastCreatedUnit(), "thunderbolt", cel)
call RemoveUnit (GetLastCreatedUnit())
Any ideas, maybe?