• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Creep Question

Status
Not open for further replies.
Level 19
Joined
Aug 24, 2007
Messages
2,888
How can we make other creeps dont attack when we attack a creep
Without Hold Position or Stop :con:
 
Level 5
Joined
Mar 21, 2007
Messages
155
not sure thats possible. because they are creeps, and creeps are a "force" so they will look out for eachother. if you want to do this you might need to put a trigger where you order the creep to hold position if he moves and is not attacked
 
Level 5
Joined
Jul 26, 2004
Messages
99
You can change the "aspects of alliance" for all players.

This includes players 13-16, meaning Neutral Hostile, Neutral Passive, Neutral Victim, and Neutral Extra.

You can just ally Neutral Hostile to whatever players you don't want it to attack. Turning the "Unit Allowed to Flee" option to "false" within each hostile unit you want to attack might help too.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
not sure thats possible. because they are creeps, and creeps are a "force" so they will look out for eachother. if you want to do this you might need to put a trigger where you order the creep to hold position if he moves and is not attacked

but I need them to return in 5 seconds if they are not attacked again in this 5 seconds

gameplay constants if you change the creeps guard distance to a lower point.

And I think I tried that
 
Level 4
Joined
May 6, 2007
Messages
87
You can set their Unit classification to worker in the Object editor, or use this:

  • Actions
    • Unit - Add classification of A peon-type unit to (Triggering unit, or whatever you want)
Edit: For example, you could use this:

  • Events
    • Unit - A unit is attacked
  • Actions
    • Unit Group - Pick every unit in (Units within 512.00 of (Position of (Triggering unit))) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Picked unit)) is an ally of (Owner of (Triggering unit))) Equal to True
        • Then - Actions
          • Unit - Add classification of A peon-type unit to (Picked unit)
        • Else - Actions
Then you could remove the classification of 'A peon-type unit' later.
 
Status
Not open for further replies.
Top