exge
New Member
- Reaction score
- 15
whats wrong with the following function ...it refuses to compile
PHP:
function DummyCast takes unit caster, unit target, abilcode spellabilcode,string order returns nothing
call CreateNUnitsAtLoc( 1, 'h003', GetOwningPlayer(caster), GetUnitLoc(caster), bj_UNIT_FACING )
local unit dummy = GetLastCreatedUnit()
call UnitAddAbilityBJ(spellabilcode,dummy)
call IssueTargetOrderBJ(dummy, order,target)
call UnitApplyTimedLifeBJ( 2.00, 'BTLF',dummy)
endfunction