• 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.

[JASS] Jass Special Effects

Status
Not open for further replies.
Level 3
Joined
Dec 29, 2006
Messages
15

Ok i have a problem with my jass spell, im very new to it so please bear with me.
I'm trying to have an imported effect model instead of a model already in War3 but when i try to plug in something like war3mapImported\BoneSpirit.mdx into the code it just crashes the world editor.

JASS:
call AddSpecialEffectLocBJ( GetUnitLoc(GetSpellTargetUnit()), "Abilities\\Spells\\Items\\TomeOfRetraining\\TomeO fRetrainingCaster.mdl" )

This is how it is right now, and i cant get it to use imported models

call AddSpecialEffectLocBJ( GetUnitLoc(GetSpellTargetUnit()), "war3mapImported\BoneSpirit.mdx" )

This is how i want it to be. Thanks in advance:smile:
 
Level 11
Joined
Jul 12, 2005
Messages
764
Just a note, (i know you just started JASS, but...) use cordinates instead of locations. And also destroy the effect:
call DestroyEffect(AddSpecialEffect("Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl", GetUnitX(GetSpellTargetUnit()), GetUnitY(GetSpellTargetUnit())))
 
Status
Not open for further replies.
Top