• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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,266
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