| 07-29-2004, 04:17 AM | #1 |
Im looking to make this trigger/spell. When they use War Stomp it will cast shockwave instead (Im looking to make a Shockwave that will be cast without having to target the ground) If possible: the JASS code for When a player presses the down arrow key Chieftan will cast shockwave in direction of the front of Chieftan |
| 07-29-2004, 05:17 AM | #2 |
Code:
EVent: Unit starts the effect of a spell Condition: Ability beign cast = war stomp Action: Unit- create 1 ShockwaveCasterDummy at position of casting unit Order last created unit to Shockwave position of casting unit offset by 100 toward facing angle of casting unit Apply 1 second life timer to last created unit This uses a dummy unit to cast the shockwave spell. If you'd rather just give the unit the spell, then just modify the trigger. |
| 07-29-2004, 05:33 AM | #3 |
That helps. Thanks a bunch. |
| 07-29-2004, 04:49 PM | #4 |
well this did create the spell and it did cast it. However before of the offset it would not shoot in the direction the hero is facing but in the direction of the hero with the offset (what the trigger is telling it do). Is there any way to make it shoot the direction the hero is facing? |
| 07-29-2004, 10:30 PM | #5 |
reduce the offset? |
| 07-29-2004, 11:39 PM | #6 |
The trigger I gave you uses the casting unit's facing angle. That HAS to point toward the front. You might try twiddling with the cast range of your shockwave spell or reducing the offset to like, 10. |
