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

[Spell] Turning off attack and abilities

Status
Not open for further replies.
Level 21
Joined
Feb 23, 2015
Messages
243
Hi guys
Is there any way to turn off unit's attack and ALL abilities via GUI? I'm making spell that's works like Adept's teleportation in Starcraft. Spell creates immortal copy of caster that can only move and after some time caster is teleported to it's location. I can make copy a different unit in object editor, but I wanted to make it 100% in gui - spell creates unit of caster's type in caster's location, removes it's spells and attacks and makes it immortal. Problem is that I found a way to remove single specific ability, but no way to turn off all or remove attack. Can you help me?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
You can give the unit Orc burrow - cargo hold ability with 0 capacity. It will disable the attack ability. You can prevent spellcasting with

Unit begins casting an ability
->Pause triggering unit
->Order triggering unit to stop
->Unpause triggering unit

Alternatively, Silence spell can disable spells and attacks, but the silence buff can be removed. If there is no buff removing in your map, you could use that.
 
Status
Not open for further replies.
Top