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

How to make a tower defense building use a spell as it's default attack?

Status
Not open for further replies.
Level 1
Joined
Nov 5, 2012
Messages
4
Hey guys, I ran into a problem while creating my tower defense map, and the problem is that I'm trying to get my tower to use a spell (Carrion Swarm) as it's "Default attack" ability to where it automatically uses it without me having to click and direct where I want it to target.

I'm quite the novice when it comes to map creating, but I'm learning on the fly. Any help would be appreciated. :)
 
Last edited:
Level 1
Joined
Nov 5, 2012
Messages
4
Yeah, my tower shouldn't be attacked, so I assume that code wouldn't work then? My spell is actually a slightly edited carrion swarm, it just does more damage. The goal is to make this tower use that spell on most of it's attacks with a 0.2 second cooldown. The normal attack does 1-2 damage.
 

TKF

TKF

Level 19
Joined
Nov 29, 2006
Messages
1,267
It might be a problem to make the tower use the spell every 0,2 sec since units have animation settings which limits how fast it casts. Don't remember if this applies to buildings but for units it often cannot cast that fast even you set units art animation cast 0.01.

Usually I use dummies.
 
Status
Not open for further replies.
Top