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