| 03-26-2008, 12:04 PM | #2 |
Also, Region[5] = UnitMove right? coz if not then that is why it fails. Id say just hide him, move the region, then unhide him, and try moving the region before the unit. |
| 03-26-2008, 12:10 PM | #3 |
Yes of course it is. I don't understand what you're saying with the other bit, could you make it a bit clearer please? |
| 03-26-2008, 12:44 PM | #4 |
Just checking ^^ Ok, with the other bit i was thinking it wasnt triggering because it wasnt sensing him exit the region, so try hiding the unit, then move the region, then unhide the unit, so the trigger will work properly: Trigger: Unit - Hide Unit[5]![]() Region - Center Region[5] on TempPoint![]() Unit - Unhide Unit[5]Just like that, insted of just using the, center region on point. |
| 03-26-2008, 11:14 PM | #5 |
Sorry but I still don't follow you =/ could you put it into my code? |
| 03-27-2008, 09:23 AM | #7 |
I'll try it but I really don't see how that would make any difference. |
| 03-28-2008, 01:06 PM | #8 |
well i hav a feeling that the program is having a sad because it isnt registering that the unit is leaving the region, ie the unit is in the region, then the region moves, so the unit hasnt realy left it. I think blizzards programing is a bit... interesting... in this kind of situation |
| 03-29-2008, 03:58 PM | #9 |
One foreseeable problem, though probably not the issue here, is if the new random point is inside the region. If you get unlucky, the unit will move to the point, but never have left the region. |
| 03-30-2008, 01:00 AM | #10 |
but hiding, then moving, then unhiding will solve that problem right? |
| 03-31-2008, 12:02 PM | #11 |
I had tried it multiple times to make sure that the regions new position didn't still include the old position. Plus the region is smallish. |
| 04-04-2008, 11:48 AM | #12 |
alou there, i was missing wc3camp so bad, so i'm back bro, just use two regions. if still u want to solve that code, debug it. make a trigger that tells you if the unit is inside that region when that unit moves to the region and stops, run the trigger. Trigger: tst anim
![]() Conditions
Edit: btw, are u sure that (Triggering unit) Equal to Unit[5] shouldn't be (entering unit) ? to make sure that this condition is working and da' trigger is running, put a game-message there, to make sure the trigger is being ran. |
| 04-04-2008, 12:41 PM | #13 |
Yeah I'm a noob, I was moving Region[5], not UnitMove <gen> =/ |
