• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Area Triggering... {how to move a region?}

Status
Not open for further replies.
Level 2
Joined
Jun 4, 2009
Messages
17
So I begun making a gamne where there are three groups that are trying to take over a certain area.

Now I encountered a little problem in the trigger and scripting section, where I can't figure out how to make so that, when a unit enters a certain regions and stays there for 15 sec the flag (or circle) in that region will change owners to the owner of thel unit...

basiclly:
unit enters region and stays in it for 15 seconds
circle changes owner to the owner of the unit

I can't find how to enter this into the triggers... help? :0
 
Level 26
Joined
Mar 19, 2008
Messages
3,140
I dont understand what you need to be honest, a bit messy explanation - elaborate more.
What I got from title of thread is how to move regions, here are actions that will help you manipulating them:

- creating region and setting region variable to it
  • Set Yourregion = Region centered at yourpoint with <here you write its size>
- moving region
  • Region - Center region <position>
- clearing region if needed
  • Custom script: call RemoveRect(udg_yourregion)
 
Status
Not open for further replies.
Top