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

Shooting trigger

Status
Not open for further replies.
Level 5
Joined
Sep 30, 2010
Messages
106
using some abilities and triggers, can I make my hero just shoot straight when I press certain key? without pointing my cursor, just shooting straight.. how can I do it?
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
There's only a few keys you can trigger with.
You can catch those, create a dummy with the same model as your missile model facing the triggering unit's facing angle and have it move using a periodic Unit Move trigger until it reaches an enemy unit or if your expiration timer runs out and then turn off the move unit trigger.
 
Level 5
Joined
Sep 30, 2010
Messages
106
There's only a few keys you can trigger with.
You can catch those, create a dummy with the same model as your missile model facing the triggering unit's facing angle and have it move using a periodic Unit Move trigger until it reaches an enemy unit or if your expiration timer runs out and then turn off the move unit trigger.

I'm actually quite weak at triggering, can you write the triggers here? I don't even know how to create a dummy..
 
Level 5
Joined
Sep 30, 2010
Messages
106
it screwed up my hero's other abilities, when I use spells like cluster rockets, it shoots one rocket straight like a dummy unit.. but my shoot ability doesn't work.. how to fix that?
 
Level 5
Joined
Sep 30, 2010
Messages
106
Perhaps you did not configure the ShootAbility in the Shoot Setup.
Change that to your ability.

I did everything well :goblin_good_job: and I have last question if it's worth your time.. sorry for so many questions.. how to make this ability damage destructibles and neutral units too? it only damages enemy units..
 
Level 5
Joined
Sep 30, 2010
Messages
106
Here's a test map.

It now damages:
1. Passive Neutral
2. Enemy Units
3. Destructibles (Bridges/Ramps and Trees/Destructibles)

that's all I needed, thanks!! :goblin_good_job: but when I launched the game and fired some bullets, some errors came out by the way after 1 minutes of throwing.. :(
 
Status
Not open for further replies.
Top