| 09-10-2004, 01:37 PM | #1 |
Basically, i need to trigger a spell so that when it fires, it is aimed at the cusor. basically, cast shockwave, but still bring up that target crosshair.. does anyone know how!? i have deadlines soon, so please, HURRY! |
| 09-10-2004, 02:34 PM | #2 |
It's impossible, there is no native action to target where the mouse is on the screen, the mouse has no correlation to the game world until you target points on it :/ You could make some complex mouse tracking jass code that could become a dynamic variable for the spell to target... lol good luck with that tho |
| 09-10-2004, 04:28 PM | #3 |
Im not sure what you mean but this is what to do. Make a unit with the ghost ability, really small, and no selection scale. Make a dummy spell of shockwave. Make the dummy do 0 damage and no art. make the real shockwave for the for the unit. Code:
Events: Unit begins casting ab ability Conditions: Ability being cast is Shockwave dummy Actions: Create special effect at target point being cast Create a shockwave caster at point of casting unit Unit order last created unit to use shockwave at target point of ability being cast Destroy last created special effect Remove last created unit |
| 09-11-2004, 02:26 AM | #4 | |
Quote:
lol, well... the thing about that is that the effect i want is actually to have shockwave cast whenever you click. Ive made it so that when a unit goes into a certin form, a trigger happens. I want it so that whereverer they click, shockvave occours. now, when i add this kind of method to my own trigering, basically what happens is when I choose to make this unit cast shockwave, it casts it fine and after it comes a second shockwave because of my trigger... If this isnt what yours was ment to do could you show me a lil clearer, im really not sure how the dummy creation would help..... |
