| 08-24-2002, 05:09 PM | #1 |
Guest | Is there a way to prevent units from automatically using waygates? My waygates are invisible, so i only want them to be usable if they can be clicked on ( which also means they have been detected in some way ). |
| 08-24-2002, 05:16 PM | #2 | |
Quote:
mmmmmmm teach me how to make invisible waygates :) |
| 08-24-2002, 05:43 PM | #3 |
Guest | The simplest way is to just give the waygate ghost ability. But that raises some problems. You can see the waygate when fog of war is over it. So to remedy this, you can create a custom unit from a unit and give it ghost ability, and waygate ability. But now, you can't select a region or make it active from the world editor. So you have to create a trigger on map init to make all of the waygates, and use custom text. then for each waygate, you need these 3 lines ( u and p are locals ): // Waygate #1 set u = CreateUnit( p, 'YourUnitID', 2560.6, -2043.0, 303.891 ) call WaygateSetDestination( u, GetRectCenterX(gg_rct_YourRegion), GetRectCenterY(gg_rct_YourRegion) ) call WaygateActivate( u, true ) |
