| 09-14-2004, 04:35 PM | #1 |
I need to disable the waygate for all air units. Now you might think "why dont he just make a trigger that pushes them away from the waygate once they come close"... Because the air unit is supposed to go in a straight line from point A to point B, and as it is now the unit uses all waygates it can to get tehre as fast as possible. I need to stop the unit AI from using waygates. Possible? Or can i use some kind of unit classification that waygates doesnt accept? I tried changing targets allowed in the "Waygate" skill, but it didnt help. ![]() edit: Found one sollution: I put air pathing blockers around them. This works, but creates a new problem: Now air cant even move over the waygates, looks kind of weird... But if you guys have no other possible sollution, ill just use these pathing blockers. |
| 09-14-2004, 05:29 PM | #2 |
As far as I know air units can not use waygates... But it can have been added. Going to try if they can now I've tried it and air units can be teleported, I were suprised. |
| 09-14-2004, 08:43 PM | #3 |
Ye i thought so too at first... Oh well, these blockers work quite well. But it would still be much better if the ordered units just flew over the waygates without using... |
| 09-14-2004, 09:33 PM | #4 |
well I thnk this may work Events: A unit is issued an order targetting an object conditions Issued ORder = order(smart) Unit Type of (target unit of issued order) = waygate (triggering unit) is a flying unit equal to true Actions: Turn off (this trigger) Pause (triggering unit) Set temppoint=Poisition of (target unit of issued order) Order - Triggering unit to move to temppoint custom script: call RemoveLocation(udg_temppoint) un pause (triggering unit) Turn on (this trigger) |
| 09-14-2004, 10:26 PM | #5 |
I think there is a more simple solution... Just change the target allowed on waygate ability |
| 09-15-2004, 05:47 AM | #6 |
Lightblade: I said earlier that i had tested it, but it did not work. Waygates dont have targets allowed. Lord Vexorian: Hmm if it was somebody else who posted that, i would deffinately say "that wont work" but because its you... Ill try! 1 question: Why would it help ordering the unit to the waygate? =/ |
| 09-16-2004, 06:52 AM | #7 | |
Quote:
His trigger catches the unit that is on his way to the Waygate... Destroys the Waygate waypoint set by the comp (Just as you do when you order a unit to somewhere) and then let's the unit go, for the computer to order around again. |
| 09-16-2004, 12:06 PM | #8 |
Yes but temppoint is a user-created variable, not? Wont destroying the variable just destroy the variable and not the waypoint itself? Oh well ill try anyways... thanks edit: Tested it and it didnt work. Temppoint is a user created variable that can be called anything right? |
| 09-16-2004, 12:09 PM | #9 | |
Quote:
|
| 09-16-2004, 02:39 PM | #10 |
OKay... Any other ways of doing it? Cause that one didnt work... =/ |
| 09-16-2004, 04:49 PM | #11 |
You could trigger the whole waygating business, but then units wouldn't consider waygates when calculating pathing. |
| 09-17-2004, 12:35 AM | #12 |
Just surround the way gate with Anti-Air blockers?... |
| 09-17-2004, 06:12 AM | #13 |
Ye link, allrdy done that. But, as allready said, now the problem is that i dont want air to start avoiding the empty space over the waygates. Looks ugly when my bombers start turning =/ |
| 09-17-2004, 06:39 AM | #14 |
Lord Vexorian had the right idea with detecting the units order vs a waygate, but his actions were trying to be too complex. Usually the best answer is the simplist one. The events and conditions are exactly the same as vexorians. Code:
No Flying In Waygate
Events
Unit - A unit Is issued an order targeting an object
Conditions
((Triggering unit) is A flying unit) Equal to True
(Issued order) Equal to (Order(smart))
(Unit-type of (Target unit of issued order)) Equal to Way Gate
Actions
Unit - Order (Ordered unit) to Move To (Position of (Target unit of issued order))
|
| 09-17-2004, 02:06 PM | #15 |
Cmon u cant seriously think that will help? Ordering the unit to move AGAIN will not make it resume its previous path. What i want is so units wont use waygates, not so they will not trigger them. Maybe you missunderstood the problem? |
