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

make AI ignore unit under its control

Status
Not open for further replies.
Level 9
Joined
Dec 31, 2016
Messages
316
How to disable the basic computer AI on a unit? I have a unit that has an ability on autocast and the ability is used in triggers, but the ai keeps disabling the autocast and after a while reenabling it, so the ability is pretty useless. And I need to have the computer AI enabled, because I want to have it renamed to the player's name and also most of my triggers depends on allies and I am not sure if the triggered alliances are the same as the ones in the force settings.
 
Level 20
Joined
Apr 12, 2018
Messages
494
Instead of fighting the game on how to use abilities you should ideally work with it.

And that depends entirely on a) what your trigger is supposed to do and b) what ability you're basing your autocast on. The computer will always try to use a copy of a spell just like the base spell whenever possible so you can't fight it and make it act any other way. And even then, autocast is actually a player convenience-- the computer doesn't actually care about this and will cast spells whenever it sees the conditions met regardless of whether its autocast or not.
 
Status
Not open for further replies.
Top