HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

what's wrong with this line?

06-16-2006, 04:06 AM#1
darkwulfv
Says it's expecting a name:
Collapse JASS:
local effect e2 = AddSpecialEffectTargetUnit
( "Abilities\\Weapons\\Bolt\\BoltImpact.mdl","chest", tu )

Here's the line before it, and it works fine:
Collapse JASS:
local effect e = AddSpecialEffectLoc("Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl",l)

Just a quick question, I'll try and figure it out. Thx ahead of time.
06-16-2006, 04:28 AM#2
sheep.spirit
There is no such function AddSpecialEffectTargetUnit

It is actually

Collapse JASS:
native AddSpecialEffectTarget       takes string modelName, widget targetWidget, string attachPointName returns effect

widget is the unit target
06-16-2006, 04:32 AM#3
darkwulfv
uhhhh I think It'd just be easier if I JASSed the GUI for adding an effect to a unit. Might have copied it wrong. Long natives and widgets and stuff confuse me terribly. I'm a noob to JASS, so I haven't the slightest clue as to what your JASS does. Sorry :p

EDIT: removed the BJ, heheh... thought it'd help, guess not :P
supposed to be AddSpecialEffectTargetUnitBJ(blah blah blah)
woops...
06-16-2006, 04:49 AM#4
buttoxide
His is not a JASS script, it's just saying that the function is

AddSpecialEffectTarget NOT AddSpecialEffectTargetUnit

and it should be something like

AddSpecialEffectTarget("Abilities\\Weapons\\Bolt\\BoltImpact.mdl",unit,"chest")

I think... I'm still learning JASS too
06-16-2006, 05:49 AM#5
PipeDream
Yep that's right. When in doubt, open up common.j and search it.
06-16-2006, 06:34 AM#6
BertTheJasser
Or dl Jasscraft
06-16-2006, 10:38 AM#7
Blade.dk
JassCraft searches common.j too, so it is the same.