HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Houston, we have a problem.

01-07-2004, 06:43 PM#1
Emekun
Ok here's the deal;

I am currently trying to make a King Of The Hill map, and there is some things i cant get to work.

First thing: Probably the most vital of all things in a King Of The Hill map. I need a trigger that does following; A unit enters the region Hill, and as long as the Unit is in there, the scoreboard is counting, and when the unit dies or leaves the Region, the counting stops.

Second thing: Now when another unit by the same team enters the region Hill again, the points starts counting from the same sum that they stopped at.

Is that possible ? and if it is, how ? :////

Thank you :D
01-07-2004, 07:02 PM#2
Shark
here;s something....but it'll probably lag alot :)

general trigger
E: unit enters region "KotH"
C: none
A: set KoTH=entering unit
A: run KOTH (optional)

Timer trigger
E:every second of the game
C:koth is alive
a: if owner of koth is player red, then do set Timer[player number of owner of koth] = Timer[player number of owner of koth] + 1

KOTH trigger
E:
C:koth is alive
A: add that arrow thingy to the unit, so the other players know which one to shoot at :)

try this...
you need only 2 variables

Timer - which is a integer array
Koth - unit

Scoreboard update:
every 5 secs update scoreboard blabla, i guess u know this trigger....

hope it helps :)

sorry....just add condition "koth is in region KOTH"....these are rough guidelines of how it should look like...actual triggers may vary :)
01-07-2004, 07:24 PM#3
Emekun
Thanks a lot, but there is still a lot of problems :)

Well, what happens if two units, one from the red team, and one from the blue, enters the region at the same time.. and what happens when a Koth leaves the Region.. it would like the counting to stop :P.. but thanks anyway.. it got me on the right track.

Cause im not to good at understanding variables, just thought koth was a great idea.. but im not the big mapper ;)