| 01-16-2010, 05:40 PM | #1 |
I have two problems what i need to be fixed in my map: 1) In Pudge wars, when you catch any unit with hook, the unit still can throw hook or attack to other unit also he is hooked and moved. Is there any function to turn on unit's orders when he is hooked? 2) It was here before, but no one (i think) cannot do that. What parameters is for bouncing with wall? I use Angle -180 [But it working only for vertical sites and bad] Please help. |
| 01-16-2010, 07:00 PM | #2 | ||
Quote:
Quote:
|
| 01-16-2010, 08:53 PM | #3 |
When people can't wait anymore... Same thread on hive an hour before, comon ;) You got your solution here: hive |
| 01-16-2010, 11:06 PM | #4 | |
Quote:
Yeah, but i want these formula for GUI triggers. Is that possible? |
| 01-16-2010, 11:27 PM | #5 |
It is,but I advise you, to not use GUI in such complicated things, because it will be hard to create and hard to change ... Maybe reading through the Thread Ani posted you can rebuild the fromula yourself ... The only problem I see will be the Cos/Sin thing, but maybe you can use Custom Script. Greez |
| 01-16-2010, 11:46 PM | #6 |
pause unit or stun it check vector sys at resource section |
| 01-19-2010, 06:51 AM | #7 |
aha, so, how can i turn on the unit orders when he is moved every 0.03 seconds? Like in Warlock or Pudge wars. I mean when the unit is moved he ignoring something like "order stop"...... so when you are moved the unit can cast spells or attack to other unit... |
| 01-19-2010, 07:40 AM | #8 |
SetUnitX\Y dont break orders. |
| 01-19-2010, 06:44 PM | #9 |
I working with triggers, so...it will be like: Trigger: Actions
![]() Set TempPoint = (X of (position of (Unit))
![]() Set TempPoint2 = (Y of (position of (Unit))
![]() Set TempPoint3 = ((Center of (Player map area) offeset by TempPoint towards TempPoint2)
![]() Unit - Move Unit instantly to TempPoint3
![]() Custom script - call RemoveLocation(udg_TempPoint)
![]() Custom script - call RemoveLocation(udg_TempPoint2)
![]() Custom script - call RemoveLocation(udg_TempPoint3)This is the true function? |
| 01-19-2010, 07:43 PM | #10 |
No, that makes absolutely no sense. |
| 01-19-2010, 09:01 PM | #11 |
ok...hh....so, what is the true way? |
| 01-19-2010, 09:16 PM | #12 |
Well, I'm not sure where to start. Based on your initial question, I thought you already made a working hook and that your only problem was that units did not respond to orders while hooked. If that is the case, the solution is simple: use SetUnitX/SetUnitY instead of SetUnitPosition. However, judging by the last code you posted, you have a different problem: not knowing what the hell you are doing. In this case, the solution is much more difficult. |
| 01-20-2010, 10:45 AM | #13 |
So this is the true way? Thats only for example. Trigger: Actions
![]() Set TempPoint = ((Region(X of position of unit,Y of position of unit))
![]() Unit - Move Unit instantly to TempPoint, facing (Facing of (Unit))
![]() Custom script - call RemoveLocation(udg_TempPoint) |
| 01-20-2010, 12:00 PM | #14 |
No. Could you please show the working code you already have? |
| 01-20-2010, 01:47 PM | #15 |
so, i don't have any code to use it,i just want know,how to create a easy code for moving unit every 0.03 sec. I will explain. Trigger: I just want code like this...but the moving unit can controll orders (like attack,cast spells) How can i do it? |
