HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Centering a region on a unit?

12-07-2004, 09:43 PM#1
UndercoverIdiot
I have a trigger that says every .2 seconds of gametime center region "collision box" on a variable unit "playeroverative" but it doesn't move the region... Could someone help?
12-07-2004, 10:49 PM#2
HEZZA
mmmm lacking infomation there, make sure u set the other variable proper...review it...more info needed
12-08-2004, 01:18 AM#3
UndercoverIdiot
Quote:
Originally Posted by HEZZA
mmmm lacking infomation there, make sure u set the other variable proper...review it...more info needed

Thats the exact trigger I have written and well, I double checked the variables and they are all properly set to the right units. Well actually, I am using a unit array variable to use for multiple players but, I don't think that should be a problem, right?
12-08-2004, 03:21 AM#4
Arohk
the move region trigger doesnt work, (well it didnt work for me)

use an other trigger, unit enters region centered at unit, or pick ever unit whithin range of unit.
i dont exactly know what you need it for
12-08-2004, 04:52 AM#5
th15
I've read before that when you move a rect it actually creates a new rect at the new location.

You could try re-assigning your rect variable each time you move it.
12-08-2004, 04:55 AM#6
Limb_Smasher
I have the same problem except I try to center my on an item. But I did change it around for testing reasons ... like I said for it to loop actions several times and to my the region to the center of the map and I did some little effect on that region and it worked fine... but when I tried centering it on an item it didn't work. I even triple checked my variables and such but it still doesn't work...
12-08-2004, 09:48 AM#7
divine_peon
i got the same problem, too.

but hey, try to use,
Code:
Unit - Position of [color=Red][u]Unit[/u][/color] 
instead of moving the region. Hope this helped.
12-08-2004, 11:21 AM#8
UndercoverIdiot
Quote:
Originally Posted by Arohk
the move region trigger doesnt work, (well it didnt work for me)

use an other trigger, unit enters region centered at unit, or pick ever unit whithin range of unit.
i dont exactly know what you need it for
Ya ive been tyring and i think i just found out how.
-Thanks