HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with sleeping creeps

08-29-2004, 10:00 AM#1
Destromath
Well i was pondering if u could make a sleeping creep wake up when u go near him instead of attacking him, if this is possible could u pls tell me how to do this.
08-29-2004, 10:39 AM#2
SpadeZ
First you need to create a region around the creep.
Then use this trigger:

Code:
    Events
        Unit - A unit enters (REGION <gen>)
    Conditions
    Actions
        Unit - Wake up (UNIT)


Hope this helps, .
08-29-2004, 10:52 AM#3
Pheonix-IV
Theres a couple of ways, 2 which i find work well.

Code:
Wakeup
    Events
        Unit - A unit comes within 150.00 of Creep
    Conditions
    Actions
        Unit - Wake up Creep


Thats specific, not for groups, the next one should work mapwide, i'm not sure.

Code:
Wakeup
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Owner of (Picked unit)) Equal to Neutral Hostile
                    Then - Actions
                        Unit Group - Pick every unit in (Units within 250.00 of (Position of (Picked unit))) and do (Actions)
                            Loop - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        And - All (Conditions) are true
                                            Conditions
                                                (Owner of (Picked unit)) Not equal to Neutral Hostile
                                                (Owner of (Picked unit)) Not equal to Neutral Passive
                                    Then - Actions
                                        Unit Group - Pick every unit in (Units within 260.00 of (Position of (Picked unit))) and do (Actions)
                                            Loop - Actions
                                                Unit - Wake up (Picked unit)
                                    Else - Actions
                                        Do nothing
                    Else - Actions
                        Do nothing
08-29-2004, 10:59 AM#4
Destromath
ty so much both of u ^_^