• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Giving unit uner comp control?

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
Is there an action to give a unit under computer control, but unit is still owned by the same player?

I basicaly need an uncontrollable unit. Right now, I am using Locust ability, that makes unit unselectable. This works ok, but unit cannot be attacked. So I though about giving the unit under comp control. It would still be attackable and at the same time it would be owned by the same player, this means, it will give bounty to that player.


Or, is there another way?
 
Level 11
Joined
Nov 15, 2007
Messages
781
  • trigger
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • ((Triggering unit) is in unselectable) Equal to True
    • Actions
      • Selection - Remove (Triggering unit) from selection for (Owner of (Triggering unit))
Add units to the unselectable unit groups to make them unselectable. It'll still select units for long enough to issue an order, though, but there's ways around this depending on what you need the computer controlled units to do. If you give a few more details I could probably help.

Alternatively you could give the units to a computer player and trigger the bounty.
 
Status
Not open for further replies.
Top