• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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