Its probably me being dumb but I cant seem to call this function whenever I do it seems to not work the code is below
i am calling it like this
the strange part is if I put a debug message before calling it the message will show however if I try to display the message after I call this function then it does not show...
thx in advance and +Rep to the people who help me.
JASS:
function CreateSpecialEffectLoc takes location loc, real duration, string EffectPath returns nothing
set SpecialEffectCount = SpecialEffectCount + 1
set SpecialEffect[SpecialEffectCount].SpecUnit = CreateUnit(Player(15),'h000' , GetLocationX(loc), GetLocationY(loc), bj_UNIT_FACING)
set SpecialEffect[SpecialEffectCount].SpecEffect = AddSpecialEffectTargetUnitBJ( "chest", SpecialEffect[SpecialEffectCount].SpecUnit, EffectPath )
set SpecialEffect[SpecialEffectCount].CurrentDur = 0
set SpecialEffect[SpecialEffectCount].MaxDur = duration
endfunction
i am calling it like this
JASS:
call CreateSpecialEffectLoc(udg_Imprison_Loc, 0.75, "Doodads\\Cinematic\\FireTrapUp\\FireTrapUp.mdl")
the strange part is if I put a debug message before calling it the message will show however if I try to display the message after I call this function then it does not show...
thx in advance and +Rep to the people who help me.
Last edited: