| 06-16-2006, 04:06 AM | #1 |
Says it's expecting a name: JASS:local effect e2 = AddSpecialEffectTargetUnit ( "Abilities\\Weapons\\Bolt\\BoltImpact.mdl","chest", tu ) Here's the line before it, and it works fine: 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 |
There is no such function AddSpecialEffectTargetUnit It is actually JASS:native AddSpecialEffectTarget takes string modelName, widget targetWidget, string attachPointName returns effect widget is the unit target |
| 06-16-2006, 04:32 AM | #3 |
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 |
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 |
Yep that's right. When in doubt, open up common.j and search it. |
| 06-16-2006, 06:34 AM | #6 |
Or dl Jasscraft |
| 06-16-2006, 10:38 AM | #7 |
JassCraft searches common.j too, so it is the same. |
