HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Move (instantly) trigger

09-30-2004, 10:07 PM#1
AnAtOmIc)(BoMb
hello everyone,

when i do this trigger:

Events - A units enter <X>

Conditions-

Actions - Move (entering unit) to (center of <X>)

comp crash why?!?!?!?
09-30-2004, 10:52 PM#2
Dead-Inside
Because when you move it, it enters it again, so the trigger runs again.

It creates an infinite loop which instantly crashes the WC3 engine, and eventually your comp.
09-30-2004, 11:17 PM#3
Gandalf2349
Code:
Your Trigger
    Events
        -A Unit Enters <X>
    Conditions
    Actions
        Turn Off this trigger
        Move Unit to Center of <X>
        Turn On this trigger

Infinite loops are not fun...
10-01-2004, 01:56 PM#4
Arkidas
You are probablt doing so that the unit enters region, then the unit its moved to another rect, and if a unit enters that rect its moved to the other region back. You see this continues unlimited, you should better do so:

Unit enters x1

Instantly move unit to x2

Unit enters x3

instantly move unit to x4
10-01-2004, 04:31 PM#5
Dead-Inside
Or not? You're outtaly wrong Arkidas, but whatever.
10-01-2004, 09:39 PM#6
AnAtOmIc)(BoMb
i never thought of that hehe thx guys =)