• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Region Trigger Problem

Status
Not open for further replies.

Lord Gazzeboo

L

Lord Gazzeboo

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)
 
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
 
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.
Back
Top