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

[General] How to create sanctuary area?

Status
Not open for further replies.
When a unit enters in a region that is the 'sanctuary' this unit is not allowed to use spells and to attack other units.

I can make this with unit begins casting an abilty/unit is attacked - then stop, but is there a way to disable all these things on a unit until it leaves the region. Disable all abilities and disable attack? Any ideas?
 
Level 25
Joined
Sep 26, 2009
Messages
2,410
yes it is. Use the Cloud spell - it allows you to disable melee attacks, ranged attacks and spells. It's channeled AoE. You could try using dummy and an invisible model for the cloud effect as well as duration 0.00 to make it being channeled permanently. (dunno if the duration 0.00 will actually work, but it's worth giving a try)
 
Status
Not open for further replies.
Top