• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Strange problem i have never had before.

Status
Not open for further replies.
Level 3
Joined
Mar 20, 2011
Messages
35
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

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:
Status
Not open for further replies.
Top