• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Region Trigger Problem

Status
Not open for further replies.
Level 2
Joined
Aug 16, 2004
Messages
6
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)
 
Level 10
Joined
Jul 2, 2004
Messages
690
actually you could have just used the portal thingy which is already in the world editor
 
Level 4
Joined
Jan 3, 2005
Messages
91
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
 
Level 2
Joined
Aug 16, 2004
Messages
6
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.
 
Status
Not open for further replies.
Top