• 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.

[Trigger] Shotgun Spell HELP!

Status
Not open for further replies.
Level 2
Joined
Jul 16, 2015
Messages
5
Hello, I'm having trouble with a quite simple trigger. It's suppose to send out three dummy units that will spread out and damage enemy units they collide with. Problem is it only works when the caster is either facing south or north. Thanks in advance.
 

Attachments

  • Trinity Cast.jpg
    Trinity Cast.jpg
    87.6 KB · Views: 82
  • Trinity Cast.gif
    Trinity Cast.gif
    2.2 MB · Views: 119
  • Suppose to look like.gif
    Suppose to look like.gif
    1.9 MB · Views: 112
Last edited:
Level 8
Joined
Jan 28, 2016
Messages
486
Rheiko's right about the angles. You have the second set of offset distances change each time instead of the angles. Currently when you cast the ability, it sends all 3 projectiles in the same direction but they will travel 1000/2000/3000 units in that direction. If you could post the trigger in the trigger tags as Rheiko has explained, that'd be great. This tutorial should help if you have any problems with posting it.
 
Level 11
Joined
Jul 25, 2014
Messages
490
The simplest way to fix that would be keeping 3 angles (facing and +/- of facing) and using them when offsetting points.

Also I can't help but tell you that your way ov making spells is quite rigid. You use waits, you don't clean multiple points, you store values into variables incorrectly... It will become an issue as the time passes.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
Its better to use a missile system for this as well.
With proper systems you can very easily set it up and control the way of how long/far they have to travel.

The angle problem would still exist there cause you calculate it yourself.
Doing
"Set TargetPoint1 = CastingPoint offset of Distance to (Angle - 30) degrees"
"Set TargetPoint2 = CastingPoint offset of Distance to Angle degrees"
"Set TargetPoint3 = CastingPoint offset of Distance to (Angle + 30) degrees"
would solve it. (This time, try to use polar offset.)
 
Status
Not open for further replies.
Top