1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  4. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  5. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  6. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  7. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  8. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[General] How can I stop a unit from attacking via triggers?

Discussion in 'World Editor Help Zone' started by daverave1212, Sep 23, 2017.

  1. daverave1212

    daverave1212

    Joined:
    Apr 9, 2010
    Messages:
    407
    Resources:
    2
    Tools:
    1
    Tutorials:
    1
    Resources:
    2
    I am trying to script a unit to enable/disable attack at certain intervals.
    I also want to manipulate that unit's animation while it's not attacking
    How can I disable this attack?
    Thanks

    PS: What I actually want to do is have an Abomination always perform an attack right after the normal attack. The first attack is a regular attack, but 1 second after, he performs a scripted attack on the ground (that could be dodged by moving away from there) that forces him into an animation (which has teaked speeds - slower build up and faster release), locks him in place and other things, but I'm interested in how to lock him in place so that he doesn't rotate toward a target.
     
    Last edited: Sep 23, 2017
  2. Jampion

    Jampion

    JASS Reviewer

    Joined:
    Mar 25, 2016
    Messages:
    1,285
    Resources:
    0
    Resources:
    0
    You can disable attack by adding the cargo hold (orc burrow) ability or using silence/drunken haze with disable attacks checked on the unit.
    That orc burrow thing is better, because it cannot be dispelled. It works, because orc burrows can only attack while peons are loaded inside and because your unit has no load ability there is no way to load peons into them.
     
  3. daverave1212

    daverave1212

    Joined:
    Apr 9, 2010
    Messages:
    407
    Resources:
    2
    Tools:
    1
    Tutorials:
    1
    Resources:
    2
    thanks, cargo hold worked!