TD maze

Vamtiin

New Member
Reaction score
1
Hi there, I am working on a TD and need to do a trigger that is something like...
a trigger that checks if there are more than x tower in the wideness and then it will autodestoy the last created unit.
Someone that knows anytihing of it ?¨

All towers is based on the "arrow tower" and have the same groundtexture.
A total of 9 towers wide is possible.

I will remove the attacking ability on the creeps and make it impossible to shut the maze since the creeps didnt go in the maze and instead smashed the towers...
 

jnZ

I
Reaction score
64
trigger it with the event finish or starts construction, add all units of type structure (or whatever classifies your towers) into a unitgroup and count the unit. if the number of units in the unitgroup is 9 destroy the constructed tower
 

Vamtiin

New Member
Reaction score
1
Well, wouldnt that include ALL towers and limit the towers to 9 for the player ?
What I mean is that I want a trigger that counts the towers in a wide line and if it reaches 9 it destroys the last constructed building.
 

Romek

Super Moderator
Reaction score
964
This wouldn't work anyway.
You'd be able to block diagonally.

X = tower
# = nothing
Code:
X########
#X#######
##X######
###X#####
####X####
#####X###
######X##
#######X#
########X

Or.. Anything along those lines.
For example:

Code:
X########
#XXXXXXXX
 

Vamtiin

New Member
Reaction score
1
Hmm... Okay, so is there anyone that has the solution to following problem:
The creeps in the waves attacks the towers but there IS a way through. I have set the collision size on the creeps to 0 but they attack anyhow. :banghead:
I really need to fix this problem... Anyone ?
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top