• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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