• 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] Help with an ability

Status
Not open for further replies.
Level 3
Joined
Dec 22, 2007
Messages
35
Hello, long-time user, first time poster.

I am trying to make a spell via jass that's pretty simple. But I can't find a way to make the spell do two things:

First, I want it to have a projectile (a missile, like death coil), without it being based on a spell that already has this property of shooting a projectile (is that possible?) and I want to change the model of the projectile to whatever I want.


I tried something like this, but it has no parameters to put in the path of the model, and the last two values are coordinates which obviously dont help me since I'm trying to attach it to the spell =p.

call AddSpellEffectById( GetSpellAbilityId(), EFFECT_TYPE_MISSILE, 1, 1)

Then I tried something along these lines and all it does is put the thunderclap over the target's head without "throwing" it at him

call AddSpecialEffectTarget("Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl", Target, "overhead")

That's all, thanks!!
 
You can simulate the projectile but this would be pointless. Jass should only be used for complex spells that aren't possible with the Object Editor.

To simulate the projectile you need to create a unit with the Locust and Invulnerable abilities and set its model to the projectile. Then you would need to make it move to wherever the target is and then destroy it. It's quite easy but pointless since you can do it in 2 clicks with the Object Editor.

EDIT:
Things like that can be done easily! You have to make the unit play an animation to pretend its being thrown...
An example of what to make in Jass could be a spell which Teleports the hero to the target, makes him attack the enemy, then teleports him back. If i am correct, this cannot be done with the Object Editor! Anyway, takeaway has arrived! Going to eat :p Bye
 
Last edited:
Status
Not open for further replies.
Top