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

Need uncontrollable, but killable unit

Status
Not open for further replies.
Level 4
Joined
Jul 11, 2007
Messages
82
Hey, I'm making a trigger that will create a unit and then gives it a patrol order. After that order is given, the unit should be able to take no other orders. It does, however, need to be auto-targettable by enemies so it can die. This is why a locust won't work. I see this question a lot, but I never see it answer very well, yet I know there is a good way to do this. Thanks for any help.
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
well you could additionally using something like this

  • Events
    • Unit - a Unit is issued an order targeting an objekt
    • Unit - a Unit is issued an order targeting a point
  • Conditions
    • Unit-type of triggering unit is equal to you unit-type
  • Actions
    • Trigger - turn off this trigger
    • order unit to do the original order
    • Trigger - turn on this trigger
the turn on/off is necessaary otherwise the trigger would loop itself
 
Level 4
Joined
Jul 11, 2007
Messages
82
That would usually work, but it won't work here since I need the unit to patrol, and if an order were given it would mess up the patrol.
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
you could use regions for your patrolling points and then make a trigger with unit enters region1 order it to move to region2 and the other way round, then its not patrolling, but it looks like it, you could use a real variable to check if the unit has to go to region1 or region2 next if someone tries to direct your unit anywhere else
 
Level 4
Joined
Jul 11, 2007
Messages
82
Add it the Plague Ward ability (the one you see on the Disease Cloud). This unit is selectable, but not controllable, and can be only auto-attacked.

I see an ability called Disease Cloud (Plague Ward), but that didn't work. I could still select and move. Is that the one you were talking about?
 
Level 4
Joined
Jul 11, 2007
Messages
82
I made them targeted as a ward, but I can still control them. There is no ability just called "Ward" that I can see.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Simple
Copy Chaos ability
and make it transform your unit to its own type
Add Locust to your unit
When unit gets created add that chaos to your unit
it will be attacklable but not choosable/controlable

Ward is not an ability its a classfiction
and it HIDES UI actions not disables them
still you will be able to control your unit
 
Level 4
Joined
Jul 11, 2007
Messages
82
Simple
Copy Chaos ability
and make it transform your unit to its own type
Add Locust to your unit
When unit gets created add that chaos to your unit
it will be attacklable but not choosable/controlable

Ok, so I have a trigger to add the ability once the unit is made (and it changes to itself) but what do I do with the Chaos upgrade? Do I remove that techtree requirement? Do I make that upgrade initially researched?

Anyway, I made the chaos ability transform into another unit just to test, and it does transform okay, but enemies still don't attack it.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
... strange :/
it should be vulnurable to attacks
try to attack with giving attack order targeting that unit
make sure new unit doesnt have locust
 
Status
Not open for further replies.
Top