• 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.

[Solved] Start zone detection, to change tower owner

Status
Not open for further replies.
Level 2
Joined
Nov 8, 2015
Messages
8
I wanna avoid problems with my new alternative items melee map and the bases are kind of close to eachother by design and I would like to give each player a antiair close to the players base also dephended on their race.

So I would like to know how I can detect what the the owner for the tower should be. Preferly by detecting the owner of the starting location or possible the units/building that spawns with it.
 
Level 2
Joined
Nov 8, 2015
Messages
8
It's a 6 player map, with creeps on the start location if nobody spawns there. I would like players to spawn where they usually do. It's like a normal melee map that I want to add a antiair tower in addition to the townhall and workers. My plan is to place 6 towers close to the start location for every player and want variation for each class.
 
Level 16
Joined
Mar 25, 2016
Messages
1,327
In this map I determine for every tower which starting region is the closest.
For every starting region I determine, which player it belongs to.
So it basically gives each tower to the closest starting position,
This system takes quite some time to calculate which tower belongs to which player.

If you need help you can ask. I will make a new more efficient version in a few days.

Could you check the map out and tell me if this is what you wanted?
 

Attachments

  • Startposition.w3x
    19.7 KB · Views: 35
Status
Not open for further replies.
Top