Unit Movement(Auto)

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Undead0dd
Newcomer
Posts: 1
Joined: May 30th, 2009, 8:58 am
Title: The Living Dead

Unit Movement(Auto)

Post by Undead0dd »

Well I'm making a L4D Survival map, but I can't figure out how to make all spawned units to attack the players automatically, excluding special infected. Is there another way than using:

Code: Select all

Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit Group - All units owned by (Player 11 Dark Green) and do Unit - Order Picked Unit to Attack (Random Unit in (Survivors))
I don't want to use a trigger like that. I want to use a trigger that is LIKE that, but does not cause movement lag.
Image
"We were created from dust..into forms like never before..humans...though...it never lasted long...as we turned back to dust, our ashes flying away, with the wind" ~Undead0dd
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Unit Movement(Auto)

Post by Arabidnun »

You can do one, where when unit is spawned = Darkgreen, have the entering unit attack random unit.

I am also trying to work on a trigger to check for when the attacking unit of the attacker unit dies, it chooses another unit to attack. I will let you know how it goes.

Code: Select all

Untitled Trigger 001
    Events
        Unit - A unit enters (Playable map area)
    Conditions
        (Owner of (Entering unit)) Equal to Player 12 (Brown)
    Actions
        Unit - Order (Entering unit) to Attack (Random unit from (Units in (Playable map area) matching ((Owner of (Attacked unit)) Equal to Player 12 (Brown))))