Make regions by clicking

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: Make regions by clicking

Post by weirdone2 »

Just have some cmd that when typed starts monitoring when you use patrol and when it detects it saves the location and sets a variable +1 and when they've used patrol twice to define the area the variable will be at 2 so then just make the rect based off the locations of the 2 patrols and kill the detection and reset everything and their you go.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Make regions by clicking

Post by Aero »

Just remember it's muli-player instaceable.
Watch out for leaks too.
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Make regions by clicking

Post by JJ2197 »

weirdone2 wrote:Just have some cmd that when typed starts monitoring when you use patrol and when it detects it saves the location and sets a variable +1 and when they've used patrol twice to define the area the variable will be at 2 so then just make the rect based off the locations of the 2 patrols and kill the detection and reset everything and their you go.
Yea, that's the first thing I tried... failed and made my topic... =/
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate