Warcraft III resources & community, 2003–2006 · archived

Region Trigger Problem

7 posts
#1

Region Trigger Problem

I have had some problems with this for some time I am making a game where I have regions that act as teleportes to my base now one of my teleporters is randomly setup on the map somewhere by moving from a start place and when I try to get it to work it dose not instead the start place works I was wondering if that is a mistake on my part or the editors?

this is the basic idea of the trigger:

trigger 1

event:

map initilizaton

action:

region - Center (randomTeleporter) on (Random Poin in (World))

trigger 2

event:

unit - A unit enters (randomTeleporter)

action:

unit - move (triggering unit) instantly to (base)
#2
Try creating a region using a region global variable and seting it to a point with a widths and hight.
#3
actually you could have just used the portal thingy which is already in the world editor
#4
Waygates, maybe?

Or even a unit? :D (Unit comes in range of)
#5
when manipulating regions, you can only move region variables that you MUST set before using them. this means you need to create a region veriable and set it to your previously created region:

set randomTeleporterRegion = randomTeleporter <gen>
region - Center (randomTeleporterRegion) on (Random Poin in (World))

Note that you may encounter problems when waiting for the event "a unit enters region" that moved regions may not work..

klovadis
#6
From map initializarion better use Elapse 1 sec

and you are wrong at 2nd trigger
NOT
unit - move (triggering unit) instantly to (base)
BUT
unit - move (ENTERING unit) instantly to (base)
#7

thanks

thanks for all your posts guys it really helped me out I fixed it by using the gateway unit it turned out to work the best for what I was using it with.