• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Auotrain & Attack

Status
Not open for further replies.
Level 7
Joined
Oct 13, 2008
Messages
299
I have no idea how to use AI, and didnt figure this with triggers neither, so how can i make AI / Trigger that enables autotraining Computer controlled units from their spawningbuildings? And They're supposed to target walls of my city's gates, but the gates are Neutral so i can just set rallypoint near the walls, so how can i autotrain and same time make the enemies assault my castle?
 
That didn't actually help, sorry. I know basics of autotraining, but i need to make enemy troops that are autotrained to target Neutral gates, that are not on my control, and after destroying the gates, they should force thru to my base. I know how to make trigger that autotrains units, and i know how to make the unit target specified unit, that is Player Owned, but how to make the target to trigger at Gate? and after destroying the gate attacking buildings inside the base.
 
Theres two ways set the unit to attack move to the other side of the gate beside the buildings.

Or you can make periodic triggers at each area. AutoTrain area attack move to front of gate. In front of gate area to attack move to buildings. So on and so forth. You can set it up on unit enters region or periodic your choice.


if you want it to attack the gate ignoring everything else then issue order to right click gate etc.


If the gate is neutral hostile and the unit is able it will attack gate on its own.
 
Made it my own way; After 10 Minutes Autotrain Script will activate. Then Trigger building starts to train unit every 12. seconds. Second; After 0.01 Sec's Trigger building will set Rally point inside my castle. So, At this point, i have created an object on the path of the autotrained units. So they will automatically attack the object before heading to gate that they cannot attack. And they target the object as long as it's destroyed, and i created trigger; Unit Dies Equal to object on the path of autotrained units, and Actions; Destructible - Gate 003 <gen> Dies. So yesh, theres an artifact swich's death causes the gate to break, so this one's succes. Anyone trying same can ask for trigger's i used when they need.
 
Status
Not open for further replies.
Back
Top