• 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] Anti TK

Status
Not open for further replies.
Level 19
Joined
Oct 1, 2008
Messages
1,667
OK, Short little question. How can i make a trigger(s) (Well, im pretty sure ill need a trigger for this) that will prevent players from a certain team (Or multiple triggers for each player) from attacking a building.
 
Level 5
Joined
Nov 14, 2007
Messages
161
im not sure if it's possible to prevent an attack, but you can make a trigger that follows this general idea:

Event:
Unit/Building gets attacked

Condition:
Unit/Building is equal to Unit type of Unit/Building
Attacking unit is ally of Attacked unit

Actions:
Order attacking unit to stop
or
A text message to players that a certain player is being attacked
or
instantly move attacking unit away from building
or
make do damage to attacking unit
or
some weird combination that would make it a very good idea to stop attacking the building.


be creative, im sure u can figure something out
 
Status
Not open for further replies.
Top