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

Need help with territory system

Status
Not open for further replies.
Level 1
Joined
Aug 22, 2015
Messages
2
I want to create a territorial system, as in The Settlers 4. If someone doesn't know there are towers that expand your territory and new buildings/towers can be builded only on your territory. The area is designated with pegs along the border. How can I make this in Warcraft? (I know Jass but I need idea :))
open
 
Last edited:
Level 37
Joined
Aug 6, 2015
Messages
786
I want to create a territorial system, as in The Settlers 4. If someone doesn't know there are towers that expand your territory and new buildings/towers can be builded only on your territory. The area is designated with pegs along the border. How can I make this in Warcraft? (I know Jass but I need idea :))
u can check de distance between tower and building that u want to build,
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
You can create a special effect (using GetLocalPlayer() to make it only visible for the owner of the tower) that is the same model as the selection circle and add it around each and every tower.

This ofcourse means that you also see those models in the center of your camp, but this does mean that it gives a nice border.
You could even hide and show those models as long as you have a builder selected.
But that is merely optional.
 
Status
Not open for further replies.
Top