• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Make towers unable to attack

Status
Not open for further replies.
Level 6
Joined
Jun 2, 2016
Messages
117
Hey Hivers,
Ive created an ability, which stops towers attacking and stealing experience, based on the "bear form". As replacement for the bear ive created a copy of the tower, and set its combat stats to 0. But it doesnt seem to work. Any suggestions?

0125.png


0126.png


Thanks for your time.
 
Level 18
Joined
Nov 21, 2012
Messages
835
there is an alternative:
duplicate ability Cargo Hold (Orc Burrow), set in your custom ability field "Data Cargo Capacity" to 0. Then whenever you want to disable attack on unit (tower, hero, normal unit) just add this ability to a unit. To enable attacks again - remove ability. Example:
  • cargo
    • Events
      • Player - Player 1 (Red) types a chat message containing c as An exact match
    • Conditions
    • Actions
      • Unit - Add Cargo Hold (Orc Burrow) custom to Guard Tower 0078 <gen>
      • Wait 10.00 seconds
      • Unit - Remove Cargo Hold (Orc Burrow) custom from Guard Tower 0078 <gen>
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
there is an alternative:
duplicate ability Cargo Hold (Orc Burrow), set in your custom ability field "Data Cargo Capacity" to 0. Then whenever you want to disable attack on unit (tower, hero, normal unit) just add this ability to a unit. To enable attacks again - remove ability. Example:
  • cargo
    • Events
      • Player - Player 1 (Red) types a chat message containing c as An exact match
    • Conditions
    • Actions
      • Unit - Add Cargo Hold (Orc Burrow) custom to Guard Tower 0078 <gen>
      • Wait 10.00 seconds
      • Unit - Remove Cargo Hold (Orc Burrow) custom from Guard Tower 0078 <gen>

Curious, would that work on non-building units too?
 
Status
Not open for further replies.
Top