HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Stop entering unit?

08-21-2007, 08:13 PM#1
botanic
I have a trigger that when the pathing is = 2 it wont enter a region

Ive tried stoping entering unit, as well as moving it like below yet click spamming can still get it to move ;/

Trigger:
Level 1
Collapse Events
Unit - A unit enters North <gen>
Unit - A unit enters South <gen>
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Pathing[(Player number of (Owner of (Entering unit)))] Equal to 2
Collapse Then - Actions
Unit - Order (Triggering unit) to Stop
Set temppoint = (Center of Center <gen>)
Unit - Order (Entering unit) to Move To temppoint
Wait 0.03 game-time seconds
Unit - Order (Entering unit) to Stop
Collapse Else - Actions
Set Pathing[(Player number of (Owner of (Entering unit)))] = 1
08-21-2007, 08:17 PM#2
SkriK
If it only stops it doesn't mean it leaves the region, and if it doesn't leave the region, the trigger can't be triggered.
08-21-2007, 08:51 PM#3
botanic
My problem is that there is a North east south and west portion and i need north and south to be enterable and exitable and seperatly the east and west to be enterable and exitable
08-22-2007, 03:11 PM#4
Histenchist
I think you should add a wait action (0.20).
08-22-2007, 03:53 PM#5
Toadcop
... hmm if it enter the region "freeze it"... and if the unit get order to move NOT to this region (this point is not in that region) so "Unfreeze it" and it can move + some extra check. at least this would looks more "realistic". well there are some other methods but this one i just yet thinked it out ^^ so you could try.