• 🏆 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!

Unit for a player, but uncontrollable.

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
How to make an unit for a player, but uncontrollable for it ? I mean, I'm creating a spell that passively creates zombies when any other enemy HERO is near, but zombies must be uncontrollable, just like Dota's Tombstone zombies.
 
Add the "ward" classification to the unit. This hides the unit's command card and abilities.
Then create a trigger with

events: "a unit is issued a target order", "a unit is issued an immediate order", "a unit is issued an order targetting a point"

conditions: unit type = zombie and issued order = smart

action: issue order "stop".


You can still select the units and they are still your units, but you can't control them anymore. You can still give them orders via triggers, to create f.ex. a custom AI for those units.
 
  • Like
Reactions: hdm
Status
Not open for further replies.
Top